forked from OSchip/llvm-project
[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:
parent
dc8c01891f
commit
934b516a0a
|
@ -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))
|
||||||
|
|
|
@ -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 {};
|
||||||
|
|
|
@ -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 {};
|
||||||
|
|
Loading…
Reference in New Issue