[clang-tools-extra] r310732 - Enable exceptions for this test case to speculatively fix the build bots.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 11 09:46:45 PDT 2017


Author: aaronballman
Date: Fri Aug 11 09:46:45 2017
New Revision: 310732

URL: http://llvm.org/viewvc/llvm-project?rev=310732&view=rev
Log:
Enable exceptions for this test case to speculatively fix the build bots.

Hopefully corrects: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/15666

Modified:
    clang-tools-extra/trunk/test/clang-tidy/hicpp-exception-baseclass.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/hicpp-exception-baseclass.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/hicpp-exception-baseclass.cpp?rev=310732&r1=310731&r2=310732&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/hicpp-exception-baseclass.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/hicpp-exception-baseclass.cpp Fri Aug 11 09:46:45 2017
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s hicpp-exception-baseclass %t
+// RUN: %check_clang_tidy %s hicpp-exception-baseclass %t -- -- -fcxx-exceptions
 
 namespace std {
 class exception {};
@@ -20,7 +20,7 @@ void problematic() {
     throw non_derived_exception(); // Some class is not allowed
 // CHECK-MESSAGES: [[@LINE-1]]:5: warning: throwing an exception whose type is not derived from 'std::exception'
 // CHECK-MESSAGES: 8:1: note: type defined here
-  } catch (non_derived_exception &e) { 
+  } catch (non_derived_exception &e) {
   }
   throw non_derived_exception(); // Bad
 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: throwing an exception whose type is not derived from 'std::exception'




More information about the cfe-commits mailing list