From a60dadde15ae31093a6c4758d241c4378349d8d8 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 14 Jul 2018 10:48:06 +0000 Subject: [PATCH] [clang-tidy] Force exceptions to be enabled in test For targets that have them off by default. llvm-svn: 337091 --- clang-tools-extra/test/clang-tidy/bugprone-exception-escape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.7.4