From 13316a77053514be552a0dad932e3455413b4f82 Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Sun, 19 Jul 2020 16:53:59 +0100 Subject: [PATCH] [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 --- clang/test/.clang-format | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/test/.clang-format b/clang/test/.clang-format index 4799b66..a6176c2 100644 --- a/clang/test/.clang-format +++ b/clang/test/.clang-format @@ -1,2 +1,5 @@ BasedOnStyle: LLVM ColumnLimit: 0 +AlignTrailingComments: false +CommentPragmas: "(^ ?CHECK|^ ?expected-)" +AlwaysBreakTemplateDeclarations: No -- 2.7.4