[clang-format] Wrap inserted braces only if preceded by comments
authorowenca <owenpiano@gmail.com>
Mon, 19 Sep 2022 22:28:18 +0000 (15:28 -0700)
committerowenca <owenpiano@gmail.com>
Tue, 20 Sep 2022 19:09:39 +0000 (12:09 -0700)
commit6257832bf94fbd83836ee3616480d815a1fdfbf3
treed20cc247c148b02b940e170c30565e5e339ab6ae
parent68cc35d52cff2d8345c6dffbed0d1b36b20f824f
[clang-format] Wrap inserted braces only if preceded by comments

Fixes #57805.

Differential Revision: https://reviews.llvm.org/D134233
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp