}
break;
default:
- parseStatement();
+ parseStructuralElement();
break;
}
} while (!eof());
}
}
-void UnwrappedLineParser::parseStatement() {
+void UnwrappedLineParser::parseStructuralElement() {
parseComments();
int TokenNumber = 0;
} else {
addUnwrappedLine();
++Line.Level;
- parseStatement();
+ parseStructuralElement();
--Line.Level;
}
if (FormatTok.Tok.is(tok::kw_else)) {
} else {
addUnwrappedLine();
++Line.Level;
- parseStatement();
+ parseStructuralElement();
--Line.Level;
}
} else if (NeedsUnwrappedLine) {
} else {
addUnwrappedLine();
++Line.Level;
- parseStatement();
+ parseStructuralElement();
--Line.Level;
}
}
} else {
addUnwrappedLine();
++Line.Level;
- parseStatement();
+ parseStructuralElement();
--Line.Level;
}
}
nextToken();
- parseStatement();
+ parseStructuralElement();
}
void UnwrappedLineParser::parseLabel() {
} else {
addUnwrappedLine();
Line.Level += (Style.IndentCaseLabels ? 2 : 1);
- parseStatement();
+ parseStructuralElement();
Line.Level -= (Style.IndentCaseLabels ? 2 : 1);
}
}