Skip to content

Commit 3f8d7e0

Browse files
committed
[FOLD] minor cleanup
1 parent 6c91ee6 commit 3f8d7e0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Parse/ParseExprCXX.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,8 @@ bool Parser::ParseOptionalCXXScopeSpecifier(
539539
// anyway. C++20 requires this, and in prior language modes it improves
540540
// error recovery. But before we commit to this, check that we actually
541541
// have something that looks like a template-argument-list next.
542-
if (!IsTypename &&
543-
(TNK == TNK_Undeclared_template ||
544-
(!HasScopeSpecifier && ObjectType)) &&
545-
isTemplateArgumentList(1) == TPResult::False)
542+
if (!IsTypename && (ObjectType || TNK == TNK_Undeclared_template) &&
543+
isTemplateArgumentList(1) == TPResult::False)
546544
break;
547545

548546
// We have found a template name, so annotate this token

0 commit comments

Comments
 (0)