r189757 - Test for empty .clang-format file.
Alexander Kornienko
alexfh at google.com
Mon Sep 2 06:44:16 PDT 2013
Author: alexfh
Date: Mon Sep 2 08:44:16 2013
New Revision: 189757
URL: http://llvm.org/viewvc/llvm-project?rev=189757&view=rev
Log:
Test for empty .clang-format file.
Summary: Test clang-format's handling of empty .clang-format files.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1562
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=189757&r1=189756&r2=189757&view=diff
==============================================================================
--- cfe/trunk/test/Format/style-on-command-line.cpp (original)
+++ cfe/trunk/test/Format/style-on-command-line.cpp Mon Sep 2 08:44:16 2013
@@ -6,6 +6,8 @@
// RUN: [ ! -e %T/.clang-format ] || rm %T/.clang-format
// RUN: printf "BasedOnStyle: google\nIndentWidth: 5\n" > %T/.clang-format
// RUN: clang-format -style=file %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK5 %s
+// RUN: printf "\n" > %T/.clang-format
+// RUN: clang-format -style=file %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK6 %s
void f() {
// CHECK1: {{^ int\* i;$}}
// CHECK2: {{^ int \*i;$}}
@@ -15,6 +17,8 @@ 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: {{^ int \*i;$}}
int*i;
int j;
}
More information about the cfe-commits
mailing list