summaryrefslogtreecommitdiffstats
path: root/test/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-08 15:36:30 +0000
committerDaniel Jasper <djasper@google.com>2015-05-08 15:36:30 +0000
commit199217c454a55a6edb9aac735fe073a591968ffa (patch)
tree972da064727f5877777d3d9d261678dbed87813e /test/Format
parent82157e148da398da96a848886b3ab15dffea799b (diff)
clang-format: Only output IncompleteFormat if -cursor is given.
This is only for editor integrations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Format')
-rw-r--r--test/Format/incomplete.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Format/incomplete.cpp b/test/Format/incomplete.cpp
index ade38b66a3..b66d5f816e 100644
--- a/test/Format/incomplete.cpp
+++ b/test/Format/incomplete.cpp
@@ -1,7 +1,7 @@
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t2.cpp
// RUN: clang-format -style=LLVM %t2.cpp > %t.cpp
-// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s
-// CHECK: {{^\{ "IncompleteFormat": true }}
+// RUN: FileCheck -strict-whitespace -cursor=0 -input-file=%t.cpp %s
+// CHECK: {{"IncompleteFormat": true}}
// CHECK: {{^int\ \i;$}}
int i;
// CHECK: {{^f \( g \(;$}}