mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Summary: This fixes broken tests when doing an out-of-source build that picks up a random .clang-format on the file system due to the default "file" style. Reviewers: djasper, klimek, MyDeveloperDay, krasimir Reviewed By: MyDeveloperDay Subscribers: lebedev.ri, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61001 llvm-svn: 365909
11 lines
324 B
C++
11 lines
324 B
C++
// 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>
|