mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 10:46:07 +00:00

Summary: This is especially important so that if a change is solely inserting a block around a few statements, clang-format-diff.py will still clean up and add indentation to the inner parts. Reviewers: klimek Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D14105 llvm-svn: 251474
11 lines
208 B
C++
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;}}
|
|
}
|