summaryrefslogtreecommitdiffstats
path: root/clang/test/Format/xmloutput.cpp
blob: d3c5254fc3146451693c108b8c56441368a0be8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-format -output-replacements-xml -sort-includes %s > %t.xml
// RUN: FileCheck -strict-whitespace -input-file=%t.xml %s

// CHECK: <?xml
// CHECK-NEXT: {{<replacements.*incomplete_format='false'}}
// CHECK-NEXT: {{<replacement.*#include &lt;a>&#10;#include &lt;b><}}
// CHECK-NEXT: {{<replacement.*>&#10;<}}
// CHECK-NEXT: {{<replacement.*> <}}
#include <b>
#include <a>

int a;int*b;
OpenPOWER on IntegriCloud