[PATCH] D125626: [clang-format][NFC] Don't call mightFitOnOneLine() unnecessarily

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 15 02:05:57 PDT 2022


owenpan created this revision.
owenpan added reviewers: curdeius, HazardyKnusperkeks, MyDeveloperDay.
owenpan added a project: clang-format.
Herald added a project: All.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Clean up `UnwrappedLineParser` for `RemoveBracesLLVM` to avoid calling `mightFitOnOneLine()` as much as possible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125626

Files:
  clang/lib/Format/FormatToken.h
  clang/lib/Format/UnwrappedLineParser.cpp
  clang/lib/Format/UnwrappedLineParser.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125626.429521.patch
Type: text/x-patch
Size: 13656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220515/f433a7f6/attachment.bin>


More information about the cfe-commits mailing list