hanchenye-llvm-project/clang/test/Format/adjust-indent.cpp

11 lines
208 B
C++

// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -lines=2:2 \
// RUN: | FileCheck -strict-whitespace %s
void f() {
// CHECK: void f() {
int i;
// CHECK: {{^ int\ i;}}
int j;
// CHECK: {{^ int\ j;}}
}