Home | History | Annotate | Download | only in Sema

Lines Matching refs:ParamType

3474                                    QualType ParamType, Expr *Arg) {
3525 if (S.Context.hasSameUnqualifiedType(Arg->getType(), ParamType) ||
3526 S.IsQualificationConversion(Arg->getType(), ParamType, false,
3533 << Arg->getType() << ParamType << Arg->getSourceRange();
3541 std::string Code = "static_cast<" + ParamType.getAsString() + ">(";
3543 << ParamType
3562 QualType ParamType,
3570 if (ParamType->isPointerType() || ParamType->isNullPtrType()) {
3571 switch (isNullPointerValueTemplateArgument(S, Param, ParamType, Arg)) {
3711 if (ParamType->isPointerType() && !AddressTaken)
3713 else if (AddressTaken && ParamType->isReferenceType()) {
3718 ParamType.getNonReferenceType())) {
3720 << ParamType;
3726 << ParamType
3753 if (ParamType->isReferenceType()) {
3759 ParamType.getNonReferenceType())) {
3761 << ParamType;
3767 << ParamType
3773 } else if (!AddressTaken && ParamType->isPointerType()) {
3782 if (!S.Context.hasSameUnqualifiedType(ArgType, ParamType)) {
3784 << ParamType;
3790 << ParamType
3799 if (ParamType->isPointerType() &&
3800 !ParamType->getAs<PointerType>()->getPointeeType()->isFunctionType() &&
3801 S.IsQualificationConversion(ArgType, ParamType, false,
3806 if (const ReferenceType *ParamRef = ParamType->getAs<ReferenceType>()) {
3823 << ParamType << Arg->getType()
3835 ParamType.getNonReferenceType())) {
3837 if (ParamType->isReferenceType())
3839 << ParamType << ArgIn->getType() << Arg->getSourceRange();
3842 << ArgIn->getType() << ParamType << Arg->getSourceRange();
3858 QualType ParamType,
3865 switch (isNullPointerValueTemplateArgument(S, Param, ParamType, Arg)) {
3877 ParamType.getNonReferenceType(),
3879 Arg = S.ImpCastExprToType(Arg, ParamType, CK_NoOp,
3883 ParamType.getNonReferenceType())) {
3886 << Arg->getType() << ParamType << Arg->getSourceRange();
4005 QualType ParamType = InstantiatedParamType;
4006 if (ParamType->isIntegralOrEnumerationType()) {
4018 !Context.hasSameUnqualifiedType(ParamType, Arg->getType())) {
4029 << ParamType.getUnqualifiedType();
4052 CheckConvertedConstantExpression(Arg, ParamType, Value,
4060 QualType IntegerType = ParamType;
4065 Converted = TemplateArgument(Value, Context.getCanonicalType(ParamType));
4100 ParamType = ParamType.getUnqualifiedType();
4104 if (Context.hasSameType(ParamType, ArgType)) {
4106 } else if (ParamType->isBooleanType()) {
4108 Arg = ImpCastExprToType(Arg, ParamType, CK_IntegralToBoolean).take();
4109 } else if (IsIntegralPromotion(Arg, ArgType, ParamType) ||
4110 !ParamType->isEnumeralType()) {
4112 Arg = ImpCastExprToType(Arg, ParamType, CK_IntegralCast).take();
4132 QualType IntegerType = Context.getCanonicalType(ParamType);
4136 if (ParamType->isBooleanType()) {
4180 ParamType->isEnumeralType()
4181 ? Context.getCanonicalType(ParamType)
4196 (ParamType->isPointerType() &&
4197 ParamType->getAs<PointerType>()->getPointeeType()->isFunctionType()) ||
4202 (ParamType->isReferenceType() &&
4203 ParamType->getAs<ReferenceType>()->getPointeeType()->isFunctionType()) ||
4209 (ParamType->isMemberPointerType() &&
4210 ParamType->getAs<MemberPointerType>()->getPointeeType()
4214 if (FunctionDecl *Fn = ResolveAddressOfOverloadedFunction(Arg, ParamType,
4226 if (!ParamType->isMemberPointerType()) {
4228 ParamType,
4234 if (CheckTemplateArgumentPointerToMember(*this, Param, ParamType, Arg,
4240 if (ParamType->isPointerType()) {
4245 assert(ParamType->getPointeeType()->isIncompleteOrObjectType() &&
4249 ParamType,
4255 if (const ReferenceType *ParamRefType = ParamType->getAs<ReferenceType>()) {
4280 ParamType,
4287 if (ParamType->isNullPtrType()) {
4293 switch (isNullPointerValueTemplateArgument(*this, Param, ParamType, Arg)) {
4296 << Arg->getType() << ParamType;
4311 assert(ParamType->isMemberPointerType() && "Only pointers to members remain");
4313 if (CheckTemplateArgumentPointerToMember(*this, Param, ParamType, Arg,
4369 QualType ParamType,
4379 ParamType,
4380 ParamType->getAs<MemberPointerType>()
4394 if (ParamType->isMemberPointerType()) {
4425 ParamType.getUnqualifiedType(), false,
4427 RefExpr = ImpCastExprToType(RefExpr.take(), ParamType.getUnqualifiedType(), CK_NoOp);
4431 ParamType.getUnqualifiedType()));
4437 if (ParamType->isPointerType()) {
4462 if (const ReferenceType *TargetRef = ParamType->getAs<ReferenceType>()) {