13 lines · cpp
1// RUN: clang-format -style=LLVM -output-replacements-xml -sort-includes %s \2// RUN: | FileCheck -strict-whitespace %s3 4// CHECK: <?xml5// CHECK-NEXT: {{<replacements.*incomplete_format='false'}}6// CHECK-NEXT: {{<replacement.*#include <a> #include <b><}}7// CHECK-NEXT: {{<replacement.*> <}}8// CHECK-NEXT: {{<replacement.*> <}}9#include <b>10#include <a>11 12int a;int*b;13