File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1357,7 +1357,7 @@ bool UnwrappedLineParser::parseModuleImport() {
13571357 // Handle import <foo/bar.h> as we would an include statement.
13581358 else if (FormatTok->is (tok::less)) {
13591359 nextToken ();
1360- while (!FormatTok->isOneOf (tok::semi, tok::greater, tok:: eof)) {
1360+ while (!FormatTok->isOneOf (tok::semi, tok::greater) && ! eof ( )) {
13611361 // Mark tokens up to the trailing line comments as implicit string
13621362 // literals.
13631363 if (FormatTok->isNot (tok::comment) &&
@@ -3106,7 +3106,7 @@ void UnwrappedLineParser::parseTryCatch() {
31063106 parseParens ();
31073107 continue ;
31083108 }
3109- if (FormatTok->isOneOf (tok::semi, tok::r_brace, tok:: eof)) {
3109+ if (FormatTok->isOneOf (tok::semi, tok::r_brace) || eof ( )) {
31103110 if (Style.RemoveBracesLLVM )
31113111 NestedTooDeep.pop_back ();
31123112 return ;
You can’t perform that action at this time.
0 commit comments