Skip to content

Commit 5892208

Browse files
committed
Add const, change is to isNot
1 parent d35768a commit 5892208

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Format/UnwrappedLineFormatter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class LineJoiner {
270270
if (NextLine.First->isOneOf(TT_ClassLBrace, TT_StructLBrace,
271271
TT_UnionLBrace) &&
272272
NextLine.First == NextLine.Last && I + 2 != E &&
273-
!I[2]->First->is(tok::r_brace) &&
273+
I[2]->First->isNot(tok::r_brace) &&
274274
Style.AllowShortRecordOnASingleLine == FormatStyle::SRS_Always) {
275275
if (unsigned MergedLines = tryMergeSimpleBlock(I, E, Limit))
276276
return MergedLines;

clang/lib/Format/UnwrappedLineParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ static bool ShouldBreakBeforeBrace(const FormatStyle &Style,
954954
if (InitialToken.is(TT_NamespaceMacro))
955955
Kind = tok::kw_namespace;
956956

957-
bool WrapRecordAllowed =
957+
const bool WrapRecordAllowed =
958958
!IsEmptyBlock ||
959959
Style.AllowShortRecordOnASingleLine < FormatStyle::SRS_Empty ||
960960
Style.BraceWrapping.SplitEmptyRecord;

0 commit comments

Comments
 (0)