diff options
author | Alexander Kornienko <alexfh@google.com> | 2017-06-09 07:34:58 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2017-06-09 07:34:58 +0000 |
commit | 564f1c74b6713ce952be8f683d3ae483ca626f7f (patch) | |
tree | 4c3c9a58c1afd5517fc259f8e1e84ee3086373a7 /clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp | |
parent | 4a60d370e8b85949699e730a569d3774baa2f4ce (diff) | |
download | bcm5719-llvm-564f1c74b6713ce952be8f683d3ae483ca626f7f.tar.gz bcm5719-llvm-564f1c74b6713ce952be8f683d3ae483ca626f7f.zip |
Revert "[clang-tidy] When" -fno-exceptions is used", this warning is better to be suppressed."
This reverts commit r304949.
https://reviews.llvm.org/D34002#775830
llvm-svn: 305057
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp b/clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp index 4072e3f933b..b8154ec3af1 100644 --- a/clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp @@ -1,25 +1,16 @@ -// RUN: clang-tidy %s -checks="-*,misc-noexcept-move-constructor" -- -std=c++11 \ -// RUN: | FileCheck %s -check-prefix=CHECK-EXCEPTIONS \ -// RUN: -implicit-check-not="{{warning|error}}:" -// RUN: clang-tidy %s -checks="-*,misc-noexcept-move-constructor" -- -fno-exceptions -std=c++11 \ -// RUN: | FileCheck %s -allow-empty -check-prefix=CHECK-NONEXCEPTIONS \ -// RUN: -implicit-check-not="{{warning|error}}:" - +// RUN: %check_clang_tidy %s misc-noexcept-move-constructor %t class A { A(A &&); - // CHECK-EXCEPTIONS: :[[@LINE-1]]:3: warning: move constructors should be marked noexcept [misc-noexcept-move-constructor] - // CHECK-NONEXCEPTIONS-NOT: warning: + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: move constructors should be marked noexcept [misc-noexcept-move-constructor] A &operator=(A &&); - // CHECK-EXCEPTIONS: :[[@LINE-1]]:6: warning: move assignment operators should - // CHECK-NONEXCEPTIONS-NOT: warning: + // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: move assignment operators should }; struct B { static constexpr bool kFalse = false; B(B &&) noexcept(kFalse); - // CHECK-EXCEPTIONS: :[[@LINE-1]]:20: warning: noexcept specifier on the move constructor evaluates to 'false' [misc-noexcept-move-constructor] - // CHECK-NONEXCEPTIONS-NOT: warning: + // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: noexcept specifier on the move constructor evaluates to 'false' [misc-noexcept-move-constructor] }; class OK {}; |