[clang-format] Handle more cases for RemoveBracesLLVM
authorowenca <owenpiano@gmail.com>
Mon, 13 Jun 2022 07:10:26 +0000 (00:10 -0700)
committerowenca <owenpiano@gmail.com>
Mon, 13 Jun 2022 19:10:35 +0000 (12:10 -0700)
commit7cb0bc8abf6efd7e25b0091a7306de23c3a0f314
treebf17fefe7a98cc1dbbe0ebaefd12280a9f53a718
parent98c2a853eb5e8b0e855f6da935889309544f6d9b
[clang-format] Handle more cases for RemoveBracesLLVM

Call mightFitOneOneline() on the line before the closing brace only
if it is at the level of the block.

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