diff options
Diffstat (limited to 'test/Format/incomplete.cpp')
| -rw-r--r-- | test/Format/incomplete.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/test/Format/incomplete.cpp b/test/Format/incomplete.cpp new file mode 100644 index 000000000000..bd2c74ca3c17 --- /dev/null +++ b/test/Format/incomplete.cpp @@ -0,0 +1,8 @@ +// RUN: grep -Ev "// *[A-Z-]+:" %s > %t2.cpp +// RUN: clang-format -style=LLVM %t2.cpp -cursor=0 > %t.cpp +// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s +// CHECK: {{"IncompleteFormat": true}} +// CHECK: {{^int\ \i;$}} + int    i; +// CHECK: {{^f  \( g  \(;$}} +f  ( g  (; | 
