xref: /llvm-project/clang/test/Format/ranges.cpp (revision b7fb5e6f4b5a0ce5bd8df5ba38b64db3fd10bdda)
1 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
2 // RUN: clang-format -offset=2 -length=0 -offset=28 -length=0 -i %t.cpp
3 // RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s
4 // CHECK: {{^int\ \*i;$}}
5   int*i;
6 
7 // CHECK: {{^\ \ int\ \ \*\ \ i;$}}
8   int  *  i;
9 
10 // CHECK: {{^\ \ int\ \*i;$}}
11   int   *   i;
12