[PATCH] D125626: [clang-format][NFC] Don't call mightFitOnOneLine() unnecessarily
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 15 06:27:09 PDT 2022
curdeius accepted this revision.
curdeius added a comment.
This revision is now accepted and ready to land.
LGTM. I like it! Thanks!
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:523
+ /*MunchSemi=*/true, /*KeepBraces=*/true,
+ /*UnindentWhitesmithBraces=*/false, CanContainBracedList,
+ NextLBracesType);
----------------
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2832
- parseLoopBody(false, Style.BraceWrapping.BeforeWhile);
+ parseLoopBody(true, Style.BraceWrapping.BeforeWhile);
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125626/new/
https://reviews.llvm.org/D125626
More information about the cfe-commits
mailing list