[clang] [clang-format]: Fix formatting of if statements with BlockIndent (PR #77699)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 11 11:03:53 PST 2024
================
@@ -768,15 +768,25 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
// parenthesis by disallowing any further line breaks if there is no line
// break after the opening parenthesis. Don't break if it doesn't conserve
// columns.
+ auto isOpeningBracket = [&](const FormatToken &Tok) {
+ auto isStartOfBracedList = [&](const FormatToken &Tok) {
----------------
HazardyKnusperkeks wrote:
```suggestion
auto IsOpeningBracket = [&](const FormatToken &Tok) {
auto IsStartOfBracedList = [&](const FormatToken &Tok) {
```
https://github.com/llvm/llvm-project/pull/77699
More information about the cfe-commits
mailing list