[clang-tidy] Use -fexceptions explicitly in the tests that need exceptions.

This should fix relevant buildbot breakages.

llvm-svn: 305024
This commit is contained in:
Alexander Kornienko 2017-06-08 22:25:23 +00:00
parent dc8c01891f
commit 934b516a0a
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \
// RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.ReplacementString, value: 'NOEXCEPT'}]}" \ // 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. // Example definition of NOEXCEPT -- simplified test to see if noexcept is supported.
#if (__has_feature(cxx_noexcept)) #if (__has_feature(cxx_noexcept))

View File

@ -1,6 +1,6 @@
// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \
// RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.UseNoexceptFalse, value: 0}]}" \ // RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.UseNoexceptFalse, value: 0}]}" \
// RUN: -- -std=c++11 // RUN: -- -std=c++11 -fexceptions
class A {}; class A {};
class B {}; class B {};

View File

@ -1,5 +1,5 @@
// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \
// RUN: -- -std=c++11 // RUN: -- -std=c++11 -fexceptions
class A {}; class A {};
class B {}; class B {};