Skip to content

Commit a75325b

Browse files
committed
Fix linux build failing
1 parent f464367 commit a75325b

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
@@ -5963,11 +5963,12 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
59635963
// FIXME: Not covered by tests.
59645964
if (Right.isNot(TT_FunctionLBrace)) {
59655965
return Style.AllowShortRecordOnASingleLine == FormatStyle::SRS_Never &&
5966-
(Line.startsWith(tok::kw_class) &&
5967-
Style.BraceWrapping.AfterClass) ||
5968-
(Line.startsWith(tok::kw_struct) &&
5969-
Style.BraceWrapping.AfterStruct) ||
5970-
(Line.startsWith(tok::kw_union) && Style.BraceWrapping.AfterUnion);
5966+
((Line.startsWith(tok::kw_class) &&
5967+
Style.BraceWrapping.AfterClass) ||
5968+
(Line.startsWith(tok::kw_struct) &&
5969+
Style.BraceWrapping.AfterStruct) ||
5970+
(Line.startsWith(tok::kw_union) &&
5971+
Style.BraceWrapping.AfterUnion));
59715972
}
59725973
}
59735974

0 commit comments

Comments
 (0)