[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Format / remove-duplicate-includes.cpp
blobdedb1f4d7ae7a1b56c371b4fb478bb34bfd03112
1 // RUN: grep -Ev "// *[A-Z-]+:" %s \
2 // RUN: | clang-format -style="{BasedOnStyle: LLVM, SortIncludes: true}" -lines=1:5 \
3 // RUN: | FileCheck -strict-whitespace %s
4 // CHECK: {{^#include\ <a>$}}
5 #include <a>
6 // CHECK: {{^#include\ <b>$}}
7 #include <b>
8 #include <a>
9 #include <b>
10 #include <b>
12 // CHECK: {{^\ \ int x\ \ ;$}}
13 int x ;