[all-commits] [llvm/llvm-project] 6cd963: [clang-format] Handle comments below r_brace in Re...

Owen via All-commits all-commits at lists.llvm.org
Thu May 12 16:51:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6cd9633c1da5d2867306217af59bcc4b589bab02
      https://github.com/llvm/llvm-project/commit/6cd9633c1da5d2867306217af59bcc4b589bab02
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M clang/lib/Format/Format.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Handle comments below r_brace in RemoveBracesLLVM

If a closing brace is followed by a non-trailing comment, the
newline before the closing brace must also be removed.

Differential Revision: https://reviews.llvm.org/D125451




More information about the All-commits mailing list