[clang-tidy] Force exceptions to be enabled in test
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Jul 2018 10:48:06 +0000 (10:48 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Jul 2018 10:48:06 +0000 (10:48 +0000)
For targets that have them off by default.

llvm-svn: 337091

clang-tools-extra/test/clang-tidy/bugprone-exception-escape.cpp

index 4b97fcd..af2c23d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s bugprone-exception-escape %t -- -extra-arg=-std=c++11 -config="{CheckOptions: [{key: bugprone-exception-escape.IgnoredExceptions, value: 'ignored1,ignored2'}, {key: bugprone-exception-escape.FunctionsThatShouldNotThrow, value: 'enabled1,enabled2,enabled3'}]}" --
+// RUN: %check_clang_tidy %s bugprone-exception-escape %t -- -extra-arg=-std=c++11 -extra-arg=-fexceptions -config="{CheckOptions: [{key: bugprone-exception-escape.IgnoredExceptions, value: 'ignored1,ignored2'}, {key: bugprone-exception-escape.FunctionsThatShouldNotThrow, value: 'enabled1,enabled2,enabled3'}]}" --
 
 struct throwing_destructor {
   ~throwing_destructor() {