diff options
author | Alexander Kornienko <alexfh@google.com> | 2018-03-21 14:39:24 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2018-03-21 14:39:24 +0000 |
commit | 670c6315acacb0a107e8e2ff1f43a8a54df1cd49 (patch) | |
tree | 957b652c3f2c1cbb73ff07480f5d8e51efc6c262 /clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp | |
parent | 766338ad7f7f3acdfdc0df17d9d189a2f6497beb (diff) | |
download | bcm5719-llvm-670c6315acacb0a107e8e2ff1f43a8a54df1cd49.tar.gz bcm5719-llvm-670c6315acacb0a107e8e2ff1f43a8a54df1cd49.zip |
[clang-tidy][modernize-make-unique] Checks c++14 flag before using std::make_unique
Summary: For a c++11 code, the clang-tidy rule "modernize-make-unique" should return immediately, as std::make_unique is not supported.
Reviewers: hokein, aaron.ballman, ilya-biryukov, alexfh
Reviewed By: hokein, aaron.ballman, alexfh
Subscribers: Quuxplusone, xazax.hun, cfe-commits
Tags: #clang-tools-extra
Patch by Frederic Tingaud!
Differential Revision: https://reviews.llvm.org/D43766
llvm-svn: 328101
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp b/clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp index 1e06d386cf1..96852034469 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp @@ -1,4 +1,4 @@ -// RUN: %check_clang_tidy %s modernize-make-unique %t -- -- -std=c++11 \ +// RUN: %check_clang_tidy %s modernize-make-unique %t -- -- -std=c++14 \ // RUN: -I%S/Inputs/modernize-smart-ptr #include "unique_ptr.h" |