[clang-format][NFC] Clean up the unwrapped line parser
authorowenca <owenpiano@gmail.com>
Fri, 3 Jun 2022 21:19:00 +0000 (14:19 -0700)
committerowenca <owenpiano@gmail.com>
Tue, 7 Jun 2022 09:58:57 +0000 (02:58 -0700)
commitec90bc0ea4386849f9eea54f44d25b49d4673cd6
tree17c598cd92abacc2f10c9689425f875f9b932879
parent63e3035dbe8bbc23b2cbfd2ab6bdc5b4309d0253
[clang-format][NFC] Clean up the unwrapped line parser

Change the signatures of parseBlock(), parseLevel(), and
parseStructuralElement() to support combining else and if when
removing braces. See #55663.

Differential Revision: https://reviews.llvm.org/D127005
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h