forked from OSchip/llvm-project
[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:
parent
06be148843
commit
de5785ad9d
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue