Lines Matching refs:ArgExpr
3142 if (DeclRefExpr *ArgExpr = dyn_cast<DeclRefExpr>(Arg.getAsExpr())) { in CheckTemplateTypeArgument() local
3143 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3144 NameInfo = ArgExpr->getNameInfo(); in CheckTemplateTypeArgument()
3145 } else if (DependentScopeDeclRefExpr *ArgExpr = in CheckTemplateTypeArgument() local
3147 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3148 NameInfo = ArgExpr->getNameInfo(); in CheckTemplateTypeArgument()
3149 } else if (CXXDependentScopeMemberExpr *ArgExpr = in CheckTemplateTypeArgument() local
3151 if (ArgExpr->isImplicitAccess()) { in CheckTemplateTypeArgument()
3152 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3153 NameInfo = ArgExpr->getMemberNameInfo(); in CheckTemplateTypeArgument()
6073 Expr *ArgExpr = Args[I].getAsExpr(); in CheckNonTypeTemplatePartialSpecializationArgs() local
6076 if (PackExpansionExpr *Expansion = dyn_cast<PackExpansionExpr>(ArgExpr)) in CheckNonTypeTemplatePartialSpecializationArgs()
6077 ArgExpr = Expansion->getPattern(); in CheckNonTypeTemplatePartialSpecializationArgs()
6080 while (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(ArgExpr)) in CheckNonTypeTemplatePartialSpecializationArgs()
6081 ArgExpr = ICE->getSubExpr(); in CheckNonTypeTemplatePartialSpecializationArgs()
6091 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr)) in CheckNonTypeTemplatePartialSpecializationArgs()
6103 findTemplateParameter(Param->getDepth(), ArgExpr); in CheckNonTypeTemplatePartialSpecializationArgs()
6134 S.Diag(IsDefaultArgument ? TemplateNameLoc : ArgExpr->getLocStart(), in CheckNonTypeTemplatePartialSpecializationArgs()