From 934b516a0aa56a9da562e5b09497ce39649653f9 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 8 Jun 2017 22:25:23 +0000 Subject: [PATCH] [clang-tidy] Use -fexceptions explicitly in the tests that need exceptions. This should fix relevant buildbot breakages. llvm-svn: 305024 --- .../test/clang-tidy/modernize-use-noexcept-macro.cpp | 2 +- .../test/clang-tidy/modernize-use-noexcept-opt.cpp | 2 +- clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp index 78fcb76fdb11..3948b66000f9 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp @@ -1,6 +1,6 @@ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // 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. #if (__has_feature(cxx_noexcept)) diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp index 8c305e7dec14..85a83c81d072 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp @@ -1,6 +1,6 @@ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.UseNoexceptFalse, value: 0}]}" \ -// RUN: -- -std=c++11 +// RUN: -- -std=c++11 -fexceptions class A {}; class B {}; diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp index 32d625a587d4..58c764ab90f9 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp @@ -1,5 +1,5 @@ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ -// RUN: -- -std=c++11 +// RUN: -- -std=c++11 -fexceptions class A {}; class B {};