Skip to content

Commit

Permalink
Update clang/lib/Format/ContinuationIndenter.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Owen Pan <owenpiano@gmail.com>
  • Loading branch information
gedare and owenca committed Sep 22, 2024
1 parent f53155d commit 0738a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/Format/ContinuationIndenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ bool ContinuationIndenter::canBreak(const LineState &State) {
}
}

// Don't allow breaking before a closing right brace of a block-indented
// braced list initializer if there was not already a break.
// Don't allow breaking before a closing brace of a block-indented braced list
// initializer if there isn't already a break.
if (Current.is(tok::r_brace) && Current.MatchingParen &&
Current.isBlockIndentedInitRBrace(Style)) {
return CurrentState.BreakBeforeClosingBrace;
Expand Down

0 comments on commit 0738a90

Please sign in to comment.