diff options
author | Daniel Jasper <djasper@google.com> | 2015-05-08 15:36:30 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-05-08 15:36:30 +0000 |
commit | e44e5665d4a38aa7da6b3b500e6fc8c68c73285a (patch) | |
tree | 723442d855a43386472f693735111c93be8e9e4a /clang/test/Format/incomplete.cpp | |
parent | ec1fc97e5da00a4bfbb16ac74449b2e042dc37cb (diff) | |
download | bcm5719-llvm-e44e5665d4a38aa7da6b3b500e6fc8c68c73285a.tar.gz bcm5719-llvm-e44e5665d4a38aa7da6b3b500e6fc8c68c73285a.zip |
clang-format: Only output IncompleteFormat if -cursor is given.
This is only for editor integrations.
llvm-svn: 236867
Diffstat (limited to 'clang/test/Format/incomplete.cpp')
-rw-r--r-- | clang/test/Format/incomplete.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Format/incomplete.cpp b/clang/test/Format/incomplete.cpp index ade38b66a39..b66d5f816ea 100644 --- a/clang/test/Format/incomplete.cpp +++ b/clang/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 \(;$}} |