From 3176e97f130184ece0e1a21352c8124cc83ff24a Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 30 Dec 2015 11:49:41 +0000 Subject: Vendor import of clang trunk r256633: https://llvm.org/svn/llvm-project/cfe/trunk@256633 --- test/Format/disable-include-sorting.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Format/disable-include-sorting.cpp (limited to 'test/Format/disable-include-sorting.cpp') diff --git a/test/Format/disable-include-sorting.cpp b/test/Format/disable-include-sorting.cpp new file mode 100644 index 0000000..875a0af --- /dev/null +++ b/test/Format/disable-include-sorting.cpp @@ -0,0 +1,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 +#include +// CHECK: +// CHECK-NEXT: +// NOT-SORTED: +// NOT-SORTED-NEXT: -- cgit v1.1