Skip to content

Commit ccb4f31

Browse files
committed
Fix linux build failing
1 parent 48de2de commit ccb4f31

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5960,11 +5960,12 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
59605960
// FIXME: Not covered by tests.
59615961
if (Right.isNot(TT_FunctionLBrace)) {
59625962
return Style.AllowShortRecordOnASingleLine == FormatStyle::SRS_Never &&
5963-
(Line.startsWith(tok::kw_class) &&
5964-
Style.BraceWrapping.AfterClass) ||
5965-
(Line.startsWith(tok::kw_struct) &&
5966-
Style.BraceWrapping.AfterStruct) ||
5967-
(Line.startsWith(tok::kw_union) && Style.BraceWrapping.AfterUnion);
5963+
((Line.startsWith(tok::kw_class) &&
5964+
Style.BraceWrapping.AfterClass) ||
5965+
(Line.startsWith(tok::kw_struct) &&
5966+
Style.BraceWrapping.AfterStruct) ||
5967+
(Line.startsWith(tok::kw_union) &&
5968+
Style.BraceWrapping.AfterUnion));
59685969
}
59695970
}
59705971

0 commit comments

Comments
 (0)