r189761 - Trying to fix tests with in-tree builds, that contain a .clang-format files in

Alexander Kornienko alexfh at google.com
Mon Sep 2 07:25:56 PDT 2013


Author: alexfh
Date: Mon Sep  2 09:25:56 2013
New Revision: 189761

URL: http://llvm.org/viewvc/llvm-project?rev=189761&view=rev
Log:
Trying to fix tests with in-tree builds, that contain a .clang-format files in
both tools/clang and llvm directories.

Modified:
    cfe/trunk/test/Format/style-on-command-line.cpp

Modified: cfe/trunk/test/Format/style-on-command-line.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Format/style-on-command-line.cpp?rev=189761&r1=189760&r2=189761&view=diff
==============================================================================
--- cfe/trunk/test/Format/style-on-command-line.cpp (original)
+++ cfe/trunk/test/Format/style-on-command-line.cpp Mon Sep  2 09:25:56 2013
@@ -1,4 +1,4 @@
-// RUN: grep -Ev "// *[A-Z0-9]+:" %s > %t.cpp
+// RUN: grep -Ev "// *[A-Z0-9_]+:" %s > %t.cpp
 // RUN: clang-format -style="{BasedOnStyle: Google, IndentWidth: 8}" %t.cpp | FileCheck -strict-whitespace -check-prefix=CHECK1 %s
 // RUN: clang-format -style="{BasedOnStyle: LLVM, IndentWidth: 7}" %t.cpp | FileCheck -strict-whitespace -check-prefix=CHECK2 %s
 // RUN: clang-format -style="{BasedOnStyle: invalid, IndentWidth: 7}" %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK3 %s
@@ -17,7 +17,7 @@ void f() {
 // CHECK4: Error parsing -style: Invalid argument, using LLVM style
 // CHECK4: {{^  int \*i;$}}
 // CHECK5: {{^     int\* i;$}}
-// CHECK6: Can't find usable .clang-format, using LLVM style
+// CHECK6: {{^Error reading .*\.clang-format: Invalid argument}}
 // CHECK6: {{^  int \*i;$}}
 int*i;
 int j;





More information about the cfe-commits mailing list