Skip to content

Commit 1c10f8a

Browse files
author
Galen Elias
committed
PR review comments
1 parent 780ac08 commit 1c10f8a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/include/clang/Format/Format.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5172,6 +5172,7 @@ struct FormatStyle {
51725172
R.AllowShortIfStatementsOnASingleLine &&
51735173
AllowShortLambdasOnASingleLine == R.AllowShortLambdasOnASingleLine &&
51745174
AllowShortLoopsOnASingleLine == R.AllowShortLoopsOnASingleLine &&
5175+
AllowShortNamespacesOnASingleLine == R.AllowShortNamespacesOnASingleLine &&
51755176
AlwaysBreakBeforeMultilineStrings ==
51765177
R.AlwaysBreakBeforeMultilineStrings &&
51775178
AttributeMacros == R.AttributeMacros &&

clang/lib/Format/UnwrappedLineFormatter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ class LineJoiner {
653653
assert(Limit >= I[1]->Last->TotalLength + 3);
654654
const unsigned InnerLimit = Limit - I[1]->Last->TotalLength - 3;
655655
const unsigned MergedLines = tryMergeNamespace(I + 1, E, InnerLimit);
656-
if (!MergedLines)
656+
if (MergedLines == 0)
657657
return 0;
658658
const auto N = MergedLines + 2;
659659
// Check if there is even a line after the inner result.

0 commit comments

Comments
 (0)