@@ -371,10 +371,8 @@ bool Sema::DiagnoseUnknownTemplateName(const IdentifierInfo &II,
371
371
return true;
372
372
}
373
373
374
- bool Sema::LookupTemplateName(LookupResult &Found,
375
- Scope *S, CXXScopeSpec &SS,
376
- QualType ObjectType,
377
- bool EnteringContext,
374
+ bool Sema::LookupTemplateName(LookupResult &Found, Scope *S, CXXScopeSpec &SS,
375
+ QualType ObjectType, bool EnteringContext,
378
376
RequiredTemplateKind RequiredTemplate,
379
377
AssumedTemplateKind *ATK,
380
378
bool AllowTypoCorrection) {
@@ -5461,8 +5459,7 @@ Sema::BuildQualifiedTemplateIdExpr(CXXScopeSpec &SS,
5461
5459
5462
5460
LookupResult R(*this, NameInfo, LookupOrdinaryName);
5463
5461
if (LookupTemplateName(R, (Scope *)nullptr, SS, QualType(),
5464
- /*Entering*/false,
5465
- TemplateKWLoc))
5462
+ /*Entering*/ false, TemplateKWLoc))
5466
5463
return ExprError();
5467
5464
5468
5465
if (R.isAmbiguous())
@@ -5588,8 +5585,8 @@ TemplateNameKind Sema::ActOnTemplateName(Scope *S,
5588
5585
RequiredTemplateKind RTK = TemplateKWLoc.isValid()
5589
5586
? RequiredTemplateKind(TemplateKWLoc)
5590
5587
: TemplateNameIsRequired;
5591
- if (!LookupTemplateName(R, S, SS, ObjectType.get(), EnteringContext,
5592
- RTK, /*ATK=*/nullptr, /*AllowTypoCorrection=*/false) &&
5588
+ if (!LookupTemplateName(R, S, SS, ObjectType.get(), EnteringContext, RTK,
5589
+ /*ATK=*/nullptr, /*AllowTypoCorrection=*/false) &&
5593
5590
!R.isAmbiguous()) {
5594
5591
if (LookupCtx)
5595
5592
Diag(Name.getBeginLoc(), diag::err_no_member)
@@ -11035,7 +11032,8 @@ DeclResult Sema::ActOnExplicitInstantiation(Scope *S,
11035
11032
: TSK_ExplicitInstantiationDeclaration;
11036
11033
11037
11034
LookupResult Previous(*this, NameInfo, LookupOrdinaryName);
11038
- LookupParsedName(Previous, S, &D.getCXXScopeSpec(), /*ObjectType=*/QualType());
11035
+ LookupParsedName(Previous, S, &D.getCXXScopeSpec(),
11036
+ /*ObjectType=*/QualType());
11039
11037
11040
11038
if (!R->isFunctionType()) {
11041
11039
// C++ [temp.explicit]p1:
0 commit comments