[PATCH] D127260: [clang-format] Remove braces of else blocks that embody an if block
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 7 23:56:04 PDT 2022
owenpan added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2620
+ } else if (IfLBrace && !IfLBrace->Optional) {
+ KeepIfBraces = true;
+ markOptionalBraces(ElseLeftBrace);
----------------
To be precise. It doesn't matter now but will when we configure removing braces for other styles.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127260/new/
https://reviews.llvm.org/D127260
More information about the cfe-commits
mailing list