[clang-format] Handle trailing comment for InsertBraces
authorowenca <owenpiano@gmail.com>
Thu, 24 Feb 2022 18:15:11 +0000 (10:15 -0800)
committerowenca <owenpiano@gmail.com>
Fri, 25 Feb 2022 20:29:47 +0000 (12:29 -0800)
commitc05da55bdf54e530a888acf8d2282964e25d2507
treea260c9230753799a4afa38d85de23084307f1287
parentd25a4b5485abbdb220d21aa5ed14859f2c899ed9
[clang-format] Handle trailing comment for InsertBraces

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