We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a38e2 commit d2af1eaCopy full SHA for d2af1ea
clang/lib/Format/UnwrappedLineParser.cpp
@@ -3201,10 +3201,11 @@ void UnwrappedLineParser::parseDoWhile() {
3201
void UnwrappedLineParser::parseLabel(bool LeftAlignLabel) {
3202
nextToken();
3203
unsigned OldLineLevel = Line->Level;
3204
- if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0))
3205
- --Line->Level;
+
3206
if (LeftAlignLabel)
3207
Line->Level = 0;
+ else if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0))
3208
+ --Line->Level;
3209
3210
if (!Style.IndentCaseBlocks && CommentsBeforeNextToken.empty() &&
3211
FormatTok->is(tok::l_brace)) {
0 commit comments