[all-commits] [llvm/llvm-project] 6ab730: [clang-format] Fix invalid-code-generation by Remo...
Owen via All-commits
all-commits at lists.llvm.org
Thu Jul 14 15:20:12 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6ab7307177c336d7ca5910fc434c012f35245fd1
https://github.com/llvm/llvm-project/commit/6ab7307177c336d7ca5910fc434c012f35245fd1
Author: owenca <owenpiano at gmail.com>
Date: 2022-07-14 (Thu, 14 Jul 2022)
Changed paths:
M clang/lib/Format/Format.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Fix invalid-code-generation by RemoveBracesLLVM
When removing an r_brace that is the first token of an annotated line, if the
line above ends with a line comment, clang-format generates invalid code by
merging the tokens after the r_brace into the line comment.
Fixes #56488.
Differential Revision: https://reviews.llvm.org/D129742
More information about the All-commits
mailing list