summaryrefslogtreecommitdiffstats
path: root/clang/test/Format/ranges.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-03-25 09:14:25 +0000
committerDaniel Jasper <djasper@google.com>2013-03-25 09:14:25 +0000
commitb7fb5e6f4b5a0ce5bd8df5ba38b64db3fd10bdda (patch)
tree417537f9270e38d985bdb8b85532d301fb10c4f4 /clang/test/Format/ranges.cpp
parent83c10c9d3817380d9078238fca8ba4cfd7548719 (diff)
downloadbcm5719-llvm-b7fb5e6f4b5a0ce5bd8df5ba38b64db3fd10bdda.tar.gz
bcm5719-llvm-b7fb5e6f4b5a0ce5bd8df5ba38b64db3fd10bdda.zip
Re-add clang-format tests to clang/test.
Also now use -strict-whitespace as the tests are confusing otherwise. llvm-svn: 177853
Diffstat (limited to 'clang/test/Format/ranges.cpp')
-rw-r--r--clang/test/Format/ranges.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Format/ranges.cpp b/clang/test/Format/ranges.cpp
new file mode 100644
index 00000000000..0244fc195ca
--- /dev/null
+++ b/clang/test/Format/ranges.cpp
@@ -0,0 +1,11 @@
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
+// RUN: clang-format -offset=2 -length=0 -offset=28 -length=0 -i %t.cpp
+// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s
+// CHECK: {{^int\ \*i;$}}
+ int*i;
+
+// CHECK: {{^\ \ int\ \ \*\ \ i;$}}
+ int * i;
+
+// CHECK: {{^\ \ int\ \*i;$}}
+ int * i;
OpenPOWER on IntegriCloud