summaryrefslogtreecommitdiffstats
path: root/test/Format/xmloutput.cpp
blob: 3d84a2f5e4c29bbd8015c41d8358bae214d25883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-format -output-replacements-xml -sort-includes %s \
// RUN:   | FileCheck -strict-whitespace %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;