File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1357,7 +1357,7 @@ bool UnwrappedLineParser::parseModuleImport() {
1357
1357
// Handle import <foo/bar.h> as we would an include statement.
1358
1358
else if (FormatTok->is (tok::less)) {
1359
1359
nextToken ();
1360
- while (!FormatTok->isOneOf (tok::semi, tok::greater, tok:: eof)) {
1360
+ while (!FormatTok->isOneOf (tok::semi, tok::greater) && ! eof ( )) {
1361
1361
// Mark tokens up to the trailing line comments as implicit string
1362
1362
// literals.
1363
1363
if (FormatTok->isNot (tok::comment) &&
@@ -3106,7 +3106,7 @@ void UnwrappedLineParser::parseTryCatch() {
3106
3106
parseParens ();
3107
3107
continue ;
3108
3108
}
3109
- if (FormatTok->isOneOf (tok::semi, tok::r_brace, tok:: eof)) {
3109
+ if (FormatTok->isOneOf (tok::semi, tok::r_brace) || eof ( )) {
3110
3110
if (Style .RemoveBracesLLVM )
3111
3111
NestedTooDeep.pop_back ();
3112
3112
return ;
You can’t perform that action at this time.
0 commit comments