[all-commits] [llvm/llvm-project] 7b5bdd: [clang] Partially revert "Disable a few formatting...

Bruno Ricci via All-commits all-commits at lists.llvm.org
Tue Jul 21 06:54:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b5bddfd034ef42c92c67731743399df844d5f43
      https://github.com/llvm/llvm-project/commit/7b5bddfd034ef42c92c67731743399df844d5f43
  Author: Bruno Ricci <riccibrun at gmail.com>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M clang/test/.clang-format

  Log Message:
  -----------
  [clang] Partially revert "Disable a few formatting options for test/"

The changes to "AlignTrailingComments" and "CommentPragmas" did not
result in what I expected (just leave the special comments alone).

Instead now the following:
  void test() {
    int i; // expected-error
           // expected-warning
  }

is formatted into:
  void test() {
    int i; // expected-error
    // expected-warning
  }

which is even worse.




More information about the All-commits mailing list