This revision was automatically updated to reflect the committed changes.
Closed by commit rG92d8738c3844: [clang-format] Fix a bug in merging blocks
with a wrapped l_brace (authored by owenpan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133093/n
owenpan added inline comments.
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:716
+auto IsCtrlStmt = [](const auto &Line) {
+ return Line.First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while,
+ tok::kw_do, tok::kw_for, TT_ForEac
HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:716
+auto IsCtrlStmt = [](const auto &Line) {
+ return Line.First->isOneOf(tok::k
owenpan created this revision.
owenpan added reviewers: HazardyKnusperkeks, MyDeveloperDay, curdeius.
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.
When the openi