Lines Matching refs:BaseType
288 CheckExtVectorComponent(Sema &S, QualType baseType, ExprValueKind &VK,
296 const ExtVectorType *vecType = baseType->getAs<ExtVectorType>();
360 << baseType << SourceRange(CompLoc);
447 Sema::ActOnDependentMemberExpr(Expr *BaseExpr, QualType BaseType,
464 const PointerType *PT = BaseType->getAs<PointerType>();
469 << BaseType << BaseExpr->getSourceRange() << NameInfo.getSourceRange();
474 assert(BaseType->isDependentType() ||
478 // Get the type being accessed in BaseType. If this is an arrow, the BaseExpr
480 return Owned(CXXDependentScopeMemberExpr::Create(Context, BaseExpr, BaseType,
493 QualType BaseType,
503 << SS.getRange() << rep << BaseType;
519 QualType BaseType,
523 cast_or_null<CXXRecordDecl>(computeDeclContext(BaseType));
527 assert(BaseType->isDependentType());
551 DiagnoseQualifiedMemberReference(*this, BaseExpr, BaseType, SS,
662 Sema::BuildMemberReferenceExpr(Expr *Base, QualType BaseType,
669 if (BaseType->isDependentType() ||
671 return ActOnDependentMemberExpr(Base, BaseType,
680 QualType RecordTy = BaseType;
706 // LookupMemberExpr can modify Base, and thus change BaseType
707 BaseType = Base->getType();
710 return BuildMemberReferenceExpr(Base, BaseType,
879 QualType BaseType = BaseExprType;
881 assert(BaseType->isPointerType());
882 BaseType = BaseType->castAs<PointerType>()->getPointeeType();
884 R.setBaseObjectType(BaseType);
897 : BaseType->getAs<RecordType>()->getDecl());
942 CheckQualifiedMemberReference(BaseExpr, BaseType, SS, R))
1053 << MemberName << BaseType << int(IsArrow);
1056 << MemberName << BaseType << int(IsArrow);
1136 QualType BaseType = BaseExpr.get()->getType();
1137 assert(!BaseType->isDependentType());
1147 if (const PointerType *Ptr = BaseType->getAs<PointerType>())
1148 BaseType = Ptr->getPointeeType();
1150 = BaseType->getAs<ObjCObjectPointerType>())
1151 BaseType = Ptr->getPointeeType();
1152 else if (BaseType->isRecordType()) {
1161 } else if (BaseType->isFunctionType()) {
1165 << BaseType << BaseExpr.get()->getSourceRange();
1171 if (const RecordType *RTy = BaseType->getAs<RecordType>()) {
1182 if (const ObjCObjectType *OTy = BaseType->getAs<ObjCObjectType>()) {
1214 if (RequireCompleteType(OpLoc, BaseType, diag::err_typecheck_incomplete_tag,
1345 if (!IsArrow && (OPT = BaseType->getAs<ObjCObjectPointerType>())) {
1358 assert(Context.hasSameUnqualifiedType(BaseType, BaseExpr.get()->getType()));
1408 << MemberName << BaseType);
1461 << MemberName << BaseType);
1471 if (BaseType->isExtVectorType()) {
1475 QualType ret = CheckExtVectorComponent(*this, BaseType, VK, OpLoc,
1487 BaseType->isSpecificBuiltinType(BuiltinType::ObjCSel) &&
1506 if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
1510 << BaseType << int(IsArrow) << BaseExpr.get()->getSourceRange()
1534 << BaseType << BaseExpr.get()->getSourceRange() << MemberLoc;
1657 QualType BaseType = BaseExpr->getType();
1658 if (IsArrow) BaseType = BaseType->getAs<PointerType>()->getPointeeType();
1660 Qualifiers BaseQuals = BaseType.getQualifiers();