[NFC] Change TemplateInstantiator to refer to the base using a typedef

A few places were inconsistent here, which makes a refactor to support
delayed concepts significantly more difficult.
This commit is contained in:
Erich Keane 2022-03-03 08:56:46 -08:00
parent 06be148843
commit de5785ad9d
1 changed files with 4 additions and 7 deletions

View File

@ -1121,12 +1121,12 @@ namespace {
ExprResult TransformLambdaExpr(LambdaExpr *E) { ExprResult TransformLambdaExpr(LambdaExpr *E) {
LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true);
return TreeTransform<TemplateInstantiator>::TransformLambdaExpr(E); return inherited::TransformLambdaExpr(E);
} }
ExprResult TransformRequiresExpr(RequiresExpr *E) { ExprResult TransformRequiresExpr(RequiresExpr *E) {
LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true); LocalInstantiationScope Scope(SemaRef, /*CombineWithOuterScope=*/true);
return TreeTransform<TemplateInstantiator>::TransformRequiresExpr(E); return inherited::TransformRequiresExpr(E);
} }
bool TransformRequiresExprRequirements( bool TransformRequiresExprRequirements(
@ -1336,10 +1336,7 @@ TemplateInstantiator::RebuildElaboratedType(SourceLocation KeywordLoc,
} }
} }
return TreeTransform<TemplateInstantiator>::RebuildElaboratedType(KeywordLoc, return inherited::RebuildElaboratedType(KeywordLoc, Keyword, QualifierLoc, T);
Keyword,
QualifierLoc,
T);
} }
TemplateName TemplateInstantiator::TransformTemplateName( TemplateName TemplateInstantiator::TransformTemplateName(
@ -1714,7 +1711,7 @@ TemplateInstantiator::TransformDeclRefExpr(DeclRefExpr *E) {
if (PD->isParameterPack()) if (PD->isParameterPack())
return TransformFunctionParmPackRefExpr(E, PD); return TransformFunctionParmPackRefExpr(E, PD);
return TreeTransform<TemplateInstantiator>::TransformDeclRefExpr(E); return inherited::TransformDeclRefExpr(E);
} }
ExprResult TemplateInstantiator::TransformCXXDefaultArgExpr( ExprResult TemplateInstantiator::TransformCXXDefaultArgExpr(