mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 17:36:06 +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
13 lines
387 B
C++
13 lines
387 B
C++
// RUN: clang-format -style=LLVM -output-replacements-xml -sort-includes %s \
|
|
// RUN: | FileCheck -strict-whitespace %s
|
|
|
|
// CHECK: <?xml
|
|
// CHECK-NEXT: {{<replacements.*incomplete_format='false'}}
|
|
// CHECK-NEXT: {{<replacement.*#include <a> #include <b><}}
|
|
// CHECK-NEXT: {{<replacement.*> <}}
|
|
// CHECK-NEXT: {{<replacement.*> <}}
|
|
#include <b>
|
|
#include <a>
|
|
|
|
int a;int*b;
|