Author: d0k Date: Sat Jul 14 03:48:06 2018 New Revision: 337091 URL: http://llvm.org/viewvc/llvm-project?rev=337091&view=rev Log: [clang-tidy] Force exceptions to be enabled in test
For targets that have them off by default. Modified: clang-tools-extra/trunk/test/clang-tidy/bugprone-exception-escape.cpp Modified: clang-tools-extra/trunk/test/clang-tidy/bugprone-exception-escape.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/bugprone-exception-escape.cpp?rev=337091&r1=337090&r2=337091&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/bugprone-exception-escape.cpp (original) +++ clang-tools-extra/trunk/test/clang-tidy/bugprone-exception-escape.cpp Sat Jul 14 03:48:06 2018 @@ -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() { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits