mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 19:16:05 +00:00

Summary: This fixes broken tests when doing an out-of-source build that picks up a random .clang-format on the file system due to the default "file" style. Reviewers: djasper, klimek, MyDeveloperDay, krasimir Reviewed By: MyDeveloperDay Subscribers: lebedev.ri, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61001 llvm-svn: 365909
11 lines
220 B
C++
11 lines
220 B
C++
// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style=LLVM -lines=2:2 \
|
|
// RUN: | FileCheck -strict-whitespace %s
|
|
|
|
void f() {
|
|
// CHECK: void f() {
|
|
int i;
|
|
// CHECK: {{^ int\ i;}}
|
|
int j;
|
|
// CHECK: {{^ int\ j;}}
|
|
}
|