summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-06-08 22:25:23 +0000
committerAlexander Kornienko <alexfh@google.com>2017-06-08 22:25:23 +0000
commit934b516a0aa56a9da562e5b09497ce39649653f9 (patch)
tree0b3a344bcf3e8eb9701502765d0c42c9b88dd527
parentdc8c01891f48d6a24f6e87ff00dfafd63262d791 (diff)
downloadbcm5719-llvm-934b516a0aa56a9da562e5b09497ce39649653f9.tar.gz
bcm5719-llvm-934b516a0aa56a9da562e5b09497ce39649653f9.zip
[clang-tidy] Use -fexceptions explicitly in the tests that need exceptions.
This should fix relevant buildbot breakages. llvm-svn: 305024
-rw-r--r--clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp2
-rw-r--r--clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp2
-rw-r--r--clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp
index 78fcb76fdb1..3948b66000f 100644
--- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp
+++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp
@@ -1,6 +1,6 @@
// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \
// RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.ReplacementString, value: 'NOEXCEPT'}]}" \
-// RUN: -- -std=c++11
+// RUN: -- -std=c++11 -fexceptions
// Example definition of NOEXCEPT -- simplified test to see if noexcept is supported.
#if (__has_feature(cxx_noexcept))
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp
index 8c305e7dec1..85a83c81d07 100644
--- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp
+++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp
@@ -1,6 +1,6 @@
// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \
// RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.UseNoexceptFalse, value: 0}]}" \
-// RUN: -- -std=c++11
+// RUN: -- -std=c++11 -fexceptions
class A {};
class B {};
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp
index 32d625a587d..58c764ab90f 100644
--- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp
+++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp
@@ -1,5 +1,5 @@
// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \
-// RUN: -- -std=c++11
+// RUN: -- -std=c++11 -fexceptions
class A {};
class B {};
OpenPOWER on IntegriCloud