Home | History | Annotate | Download | only in Sema

Lines Matching refs:ParamType

3575                                    QualType ParamType, Expr *Arg) {
3626 if (S.Context.hasSameUnqualifiedType(Arg->getType(), ParamType) ||
3627 S.IsQualificationConversion(Arg->getType(), ParamType, false,
3634 << Arg->getType() << ParamType << Arg->getSourceRange();
3642 std::string Code = "static_cast<" + ParamType.getAsString() + ">(";
3644 << ParamType
3663 QualType ParamType,
3671 if (ParamType->isPointerType() || ParamType->isNullPtrType()) {
3672 switch (isNullPointerValueTemplateArgument(S, Param, ParamType, Arg)) {
3675 Converted = TemplateArgument(ParamType, /*isNullPtr*/true);
3813 if (ParamType->isPointerType() && !AddressTaken)
3815 else if (AddressTaken && ParamType->isReferenceType()) {
3820 ParamType.getNonReferenceType())) {
3822 << ParamType;
3828 << ParamType
3855 if (ParamType->isReferenceType()) {
3861 ParamType.getNonReferenceType())) {
3863 << ParamType;
3869 << ParamType
3875 } else if (!AddressTaken && ParamType->isPointerType()) {
3884 if (!S.Context.hasSameUnqualifiedType(ArgType, ParamType)) {
3886 << ParamType;
3892 << ParamType
3901 if (ParamType->isPointerType() &&
3902 !ParamType->getAs<PointerType>()->getPointeeType()->isFunctionType() &&
3903 S.IsQualificationConversion(ArgType, ParamType, false,
3908 if (const ReferenceType *ParamRef = ParamType->getAs<ReferenceType>()) {
3925 << ParamType << Arg->getType()
3937 ParamType.getNonReferenceType())) {
3939 if (ParamType->isReferenceType())
3941 << ParamType << ArgIn->getType() << Arg->getSourceRange();
3944 << ArgIn->getType() << ParamType << Arg->getSourceRange();
3952 ParamType->isReferenceType());
3961 QualType ParamType,
3968 switch (isNullPointerValueTemplateArgument(S, Param, ParamType, Arg)) {
3973 Converted = TemplateArgument(ParamType, /*isNullPtr*/true);
3981 ParamType.getNonReferenceType(),
3983 Arg = S.ImpCastExprToType(Arg, ParamType, CK_NoOp,
3987 ParamType.getNonReferenceType())) {
3990 << Arg->getType() << ParamType << Arg->getSourceRange();
4113 QualType ParamType = InstantiatedParamType;
4114 if (ParamType->isIntegralOrEnumerationType()) {
4126 !Context.hasSameUnqualifiedType(ParamType, Arg->getType())) {
4137 << ParamType.getUnqualifiedType();
4160 CheckConvertedConstantExpression(Arg, ParamType, Value,
4168 QualType IntegerType = ParamType;
4174 Context.getCanonicalType(ParamType));
4221 ParamType = ParamType.getUnqualifiedType();
4225 if (Context.hasSameType(ParamType, ArgType)) {
4227 } else if (ParamType->isBooleanType()) {
4229 Arg = ImpCastExprToType(Arg, ParamType, CK_IntegralToBoolean).take();
4230 } else if (IsIntegralPromotion(Arg, ArgType, ParamType) ||
4231 !ParamType->isEnumeralType()) {
4233 Arg = ImpCastExprToType(Arg, ParamType, CK_IntegralCast).take();
4253 QualType IntegerType = Context.getCanonicalType(ParamType);
4257 if (ParamType->isBooleanType()) {
4301 ParamType->isEnumeralType()
4302 ? Context.getCanonicalType(ParamType)
4317 (ParamType->isPointerType() &&
4318 ParamType->getAs<PointerType>()->getPointeeType()->isFunctionType()) ||
4323 (ParamType->isReferenceType() &&
4324 ParamType->getAs<ReferenceType>()->getPointeeType()->isFunctionType()) ||
4330 (ParamType->isMemberPointerType() &&
4331 ParamType->getAs<MemberPointerType>()->getPointeeType()
4335 if (FunctionDecl *Fn = ResolveAddressOfOverloadedFunction(Arg, ParamType,
4347 if (!ParamType->isMemberPointerType()) {
4349 ParamType,
4355 if (CheckTemplateArgumentPointerToMember(*this, Param, ParamType, Arg,
4361 if (ParamType->isPointerType()) {
4366 assert(ParamType->getPointeeType()->isIncompleteOrObjectType() &&
4370 ParamType,
4376 if (const ReferenceType *ParamRefType = ParamType->getAs<ReferenceType>()) {
4401 ParamType,
4408 if (ParamType->isNullPtrType()) {
4414 ParamType, Arg)) {
4417 << Arg->getType() << ParamType;
4426 Converted = TemplateArgument(ParamType, /*isNullPtr*/true);
4433 assert(ParamType->isMemberPointerType() && "Only pointers to members remain");
4435 if (CheckTemplateArgumentPointerToMember(*this, Param, ParamType, Arg,
4496 QualType ParamType,
4503 if (ParamType->isArrayType())
4504 ParamType = Context.getArrayDecayedType(ParamType);
4505 else if (ParamType->isFunctionType())
4506 ParamType = Context.getPointerType(ParamType);
4513 ParamType,
4514 ParamType->getAs<MemberPointerType>()
4530 if (ParamType->isMemberPointerType()) {
4561 ParamType.getUnqualifiedType(), false,
4563 RefExpr = ImpCastExprToType(RefExpr.take(), ParamType.getUnqualifiedType(), CK_NoOp);
4567 ParamType.getUnqualifiedType()));
4574 if (ParamType->isPointerType()) {
4599 if (const ReferenceType *TargetRef = ParamType->getAs<ReferenceType>()) {