[PATCH] D133093: [clang-format] Fix a bug in merging blocks with a wrapped l_brace

2022-09-02 Thread Owen Pan via Phabricator via cfe-commits
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

[PATCH] D133093: [clang-format] Fix a bug in merging blocks with a wrapped l_brace

2022-09-01 Thread Owen Pan via Phabricator via cfe-commits
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

[PATCH] D133093: [clang-format] Fix a bug in merging blocks with a wrapped l_brace

2022-09-01 Thread Björn Schäpers via Phabricator via cfe-commits
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

[PATCH] D133093: [clang-format] Fix a bug in merging blocks with a wrapped l_brace

2022-08-31 Thread Owen Pan via Phabricator via cfe-commits
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