mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-14 14:56:47 +00:00
![Daniel Jasper](/assets/img/avatar_default.png)
This has seen quite some usage and I am not aware of any issues. Also add a style option to enable/disable include sorting. The existing command line flag can from now on be used to override whatever is set in the style. llvm-svn: 253202
11 lines
312 B
C++
11 lines
312 B
C++
// 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>
|