[clang-tidy] fix readability-else-after-return test
authorKirill Bobyrev <omtcyfz@gmail.com>
Thu, 11 Aug 2016 08:18:39 +0000 (08:18 +0000)
committerKirill Bobyrev <omtcyfz@gmail.com>
Thu, 11 Aug 2016 08:18:39 +0000 (08:18 +0000)
As pointed by Yung Douglas, exceptions in
test/clang-tidy/readability-else-after-return.cpp are causing PS4 bots to be
red, because exceptions aren't enabled by default on PS4 target. This patch is a
fix.

llvm-svn: 278324

clang-tools-extra/test/clang-tidy/readability-else-after-return.cpp

index 27cbfae..4e72141 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s readability-else-after-return %t
+// RUN: %check_clang_tidy %s readability-else-after-return %t -- -- -std=c++11 -fexceptions
 
 void f(int a) {
   if (a > 0)