[clang] Disable a few formatting options for test/

Hopefully this will make the bot a little less noisy. Rationale for each:

AlignTrailingComments: We don't want to force-align the various expected-error
                       and friends.

CommentPragmas:       Tell clang-format to leave the "// CHECK:" and the
                      "// expected-" alone.

AlwaysBreakTemplateDeclarations: Templates in tests often have no break between
                                 the template-head and the declaration.

Differential Revision: https://reviews.llvm.org/D83901
This commit is contained in:
Bruno Ricci 2020-07-19 16:53:59 +01:00
parent d41d952be9
commit 13316a7705
No known key found for this signature in database
GPG Key ID: D58C906B2F684D92

View File

@ -1,2 +1,5 @@
BasedOnStyle: LLVM
ColumnLimit: 0
AlignTrailingComments: false
CommentPragmas: "(^ ?CHECK|^ ?expected-)"
AlwaysBreakTemplateDeclarations: No