allwinner_a64/android/external/clang/test/Format/xmloutput.cpp
2018-08-08 16:14:42 +08:00

12 lines
375 B
C++

// 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;