summaryrefslogtreecommitdiffstats
path: root/test/Format/disable-include-sorting.cpp
blob: 875a0af400e9a79ac5938cc3d21f13d5b3e9796f (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-format %s | FileCheck %s
// RUN: clang-format %s -sort-includes -style="{SortIncludes: false}" | FileCheck %s
// RUN: clang-format %s -sort-includes=false | FileCheck %s -check-prefix=NOT-SORTED

#include <b>
#include <a>
// CHECK: <a>
// CHECK-NEXT: <b>
// NOT-SORTED: <b>
// NOT-SORTED-NEXT: <a>