summaryrefslogtreecommitdiff
path: root/test/Format/disable-include-sorting.cpp
blob: 2e9d378c283b7d9c479246560a3ec86c08718e33 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-format %s -style=LLVM | 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>