[clang-format] Handle comments below r_brace in RemoveBracesLLVM
authorowenca <owenpiano@gmail.com>
Thu, 12 May 2022 07:40:37 +0000 (00:40 -0700)
committerowenca <owenpiano@gmail.com>
Thu, 12 May 2022 23:51:18 +0000 (16:51 -0700)
commit6cd9633c1da5d2867306217af59bcc4b589bab02
tree1cd3b9bd29d2abb766b656f595e3e46d6e306f01
parente91a73de24d60954700d7ac0293c050ab2cbe90b
[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
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp