File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5172,6 +5172,7 @@ struct FormatStyle {
5172
5172
R.AllowShortIfStatementsOnASingleLine &&
5173
5173
AllowShortLambdasOnASingleLine == R.AllowShortLambdasOnASingleLine &&
5174
5174
AllowShortLoopsOnASingleLine == R.AllowShortLoopsOnASingleLine &&
5175
+ AllowShortNamespacesOnASingleLine == R.AllowShortNamespacesOnASingleLine &&
5175
5176
AlwaysBreakBeforeMultilineStrings ==
5176
5177
R.AlwaysBreakBeforeMultilineStrings &&
5177
5178
AttributeMacros == R.AttributeMacros &&
Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ class LineJoiner {
653
653
assert (Limit >= I[1 ]->Last ->TotalLength + 3 );
654
654
const unsigned InnerLimit = Limit - I[1 ]->Last ->TotalLength - 3 ;
655
655
const unsigned MergedLines = tryMergeNamespace (I + 1 , E, InnerLimit);
656
- if (! MergedLines)
656
+ if (MergedLines == 0 )
657
657
return 0 ;
658
658
const auto N = MergedLines + 2 ;
659
659
// Check if there is even a line after the inner result.
You can’t perform that action at this time.
0 commit comments