From: Benjamin Kramer Date: Sat, 14 Jul 2018 10:48:06 +0000 (+0000) Subject: [clang-tidy] Force exceptions to be enabled in test X-Git-Tag: llvmorg-7.0.0-rc1~1433 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a60dadde15ae31093a6c4758d241c4378349d8d8;p=platform%2Fupstream%2Fllvm.git [clang-tidy] Force exceptions to be enabled in test For targets that have them off by default. llvm-svn: 337091 --- diff --git a/clang-tools-extra/test/clang-tidy/bugprone-exception-escape.cpp b/clang-tools-extra/test/clang-tidy/bugprone-exception-escape.cpp index 4b97fcd..af2c23d 100644 --- a/clang-tools-extra/test/clang-tidy/bugprone-exception-escape.cpp +++ b/clang-tools-extra/test/clang-tidy/bugprone-exception-escape.cpp @@ -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() {