Lines Matching refs:Ty
441 QualType Ty = E->getType();
442 assert(!Ty.isNull() && "DefaultFunctionArrayConversion - missing type");
444 if (Ty->isFunctionType()) {
451 E = ImpCastExprToType(E, Context.getPointerType(Ty),
453 } else if (Ty->isArrayType()) {
466 E = ImpCastExprToType(E, Context.getArrayDecayedType(Ty),
652 QualType Ty = E->getType();
656 if (Ty->isFunctionType()) {
657 Res = ImpCastExprToType(E, Context.getPointerType(Ty),
680 QualType Ty = E->getType();
681 assert(!Ty.isNull() && "UsualUnaryConversions - missing type");
684 if (Ty->isHalfType() && !getLangOpts().NativeHalfType)
689 if (Ty->isIntegralOrUnscopedEnumerationType()) {
709 if (Ty->isPromotableIntegerType()) {
710 QualType PT = Context.getPromotedIntegerType(Ty);
723 QualType Ty = E->getType();
724 assert(!Ty.isNull() && "DefaultArgumentPromotion - missing type");
733 const BuiltinType *BTy = Ty->getAs<BuiltinType>();
764 Sema::VarArgKind Sema::isValidVarArgType(const QualType &Ty) {
765 if (Ty->isIncompleteType()) {
774 if (Ty->isVoidType())
777 if (Ty->isObjCObjectType())
782 if (Ty.isCXX98PODType(Context))
790 if (getLangOpts().CPlusPlus11 && !Ty->isDependentType())
791 if (CXXRecordDecl *Record = Ty->getAsCXXRecordDecl())
797 if (getLangOpts().ObjCAutoRefCount && Ty->isObjCLifetimeType())
800 if (Ty->isObjCObjectType())
810 const QualType &Ty = E->getType();
811 VarArgKind VAK = isValidVarArgType(Ty);
819 << Ty << CT);
822 if (Ty->isRecordType()) {
827 << Ty << CT << hasCStrMethod(E) << ".c_str()");
835 << getLangOpts().CPlusPlus11 << Ty << CT);
839 if (Ty->isObjCObjectType())
843 << Ty << CT);
846 << isa<InitListExpr>(E) << Ty << CT;
1622 Sema::BuildDeclRefExpr(ValueDecl *D, QualType Ty, ExprValueKind VK,
1626 return BuildDeclRefExpr(D, Ty, VK, NameInfo, SS);
1632 Sema::BuildDeclRefExpr(ValueDecl *D, QualType Ty, ExprValueKind VK,
1665 NameInfo.getLoc(), Ty, VK, FoundD, TemplateArgs);
1672 SourceLocation(), D, refersToEnclosingScope, NameInfo, Ty, VK, FoundD);
1678 Ty.getObjCLifetime() == Qualifiers::OCL_Weak &&
1888 const Type *Ty = Corrected.getCorrectionSpecifier()->getAsType();
1889 Record = Ty->getAsCXXRecordDecl();
2254 QualType Ty = Context.getTypeDeclType(TD);
2256 TLB.pushTypeSpec(Ty).setNameLoc(NameInfo.getLoc());
2258 QualType ET = getElaboratedType(ETK_None, SS, Ty);
2970 QualType Ty;
2972 Ty = Context.WideCharTy; // L'x' -> wchar_t in C and C++.
2974 Ty = Context.Char16Ty; // u'x' -> char16_t in C11 and C++11.
2976 Ty = Context.Char32Ty; // U'x' -> char32_t in C11 and C++11.
2978 Ty = Context.IntTy; // 'x' -> int in C, 'wxyz' -> int in C++.
2980 Ty = Context.CharTy; // 'x' -> char in C++
2990 Expr *Lit = new (Context) CharacterLiteral(Literal.getValue(), Kind, Ty,
3018 QualType Ty, SourceLocation Loc) {
3019 const llvm::fltSemantics &Format = S.Context.getFloatTypeSemantics(Ty);
3041 << Ty
3046 return FloatingLiteral::Create(S.Context, Val, isExact, Ty, Loc);
3167 QualType Ty;
3169 Ty = Context.FloatTy;
3171 Ty = Context.DoubleTy;
3173 Ty = Context.LongDoubleTy;
3175 Res = BuildFloatingLiteral(*this, Literal, Ty, Tok.getLocation());
3177 if (Ty == Context.DoubleTy) {
3188 QualType Ty;
3214 Ty = Context.UnsignedLongLongTy;
3215 assert(Context.getTypeSize(Ty) == ResultVal.getBitWidth() &&
3234 Ty = Context.getIntMaxType();
3237 Ty = Context.getIntTypeForBitwidth(Width,
3242 if (Ty.isNull() && !Literal.isLong && !Literal.isLongLong) {
3250 Ty = Context.IntTy;
3252 Ty = Context.UnsignedIntTy;
3258 if (Ty.isNull() && !Literal.isLongLong) {
3265 Ty = Context.LongTy;
3267 Ty = Context.UnsignedLongTy;
3273 if (Ty.isNull()) {
3283 Ty = Context.LongLongTy;
3285 Ty = Context.UnsignedLongLongTy;
3292 if (Ty.isNull()) {
3294 Ty = Context.UnsignedLongLongTy;
3301 Res = IntegerLiteral::Create(Context, ResultVal, Ty, Tok.getLocation());
4825 Sema::ActOnCompoundLiteral(SourceLocation LParenLoc, ParsedType Ty,
4827 assert(Ty && "ActOnCompoundLiteral(): missing type");
4832 QualType literalType = GetTypeFromParser(Ty, &TInfo);
5155 bool Sema::CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty,
5159 if (Ty->isVectorType() || Ty->isIntegerType()) {
5160 if (!VectorTypesMatch(*this, Ty, VectorTy))
5162 Ty->isVectorType() ?
5165 << VectorTy << Ty << R;
5169 << VectorTy << Ty << R;
5218 Declarator &D, ParsedType &Ty,
5235 Ty = CreateParsedType(castType, castTInfo);
5306 QualType Ty = TInfo->getType();
5307 assert(Ty->isVectorType() && "Expected vector type");
5310 const VectorType *VTy = Ty->getAs<VectorType>();
5311 unsigned numElems = Ty->getAs<VectorType>()->getNumElements();
5322 QualType ElemTy = Ty->getAs<VectorType>()->getElementType();
5344 QualType ElemTy = Ty->getAs<VectorType>()->getElementType();
5359 initE->setType(Ty);
6768 QualType Ty = LHSType.getNonLValueExprType(Context);
6771 CheckObjCARCConversion(SourceRange(), Ty, E, CCK_ImplicitConversion,
6781 RHS = ImpCastExprToType(E, Ty, Kind);
10121 QualType Ty = Context.VoidTy;
10138 Ty = LastExpr.get()->getType().getUnqualifiedType();
10140 if (!Ty->isDependentType() && !LastExpr.get()->isTypeDependent()) {
10153 Ty,
10174 Expr *ResStmtExpr = new (Context) StmtExpr(Compound, Ty, LPLoc, RPLoc);
10695 Expr *E, ParsedType Ty,
10698 GetTypeFromParser(Ty, &TInfo);
10790 QualType Ty;
10793 Ty = Context.IntTy;
10795 Ty = Context.LongTy;
10797 Ty = Context.LongLongTy;
10802 return new (Context) GNUNullExpr(Ty, TokenLoc);
12168 const Type *Ty = QTy.getTypePtr();
12169 switch (Ty->getTypeClass()) {
12192 QTy = cast<AdjustedType>(Ty)->getOriginalType();
12195 QTy = cast<DecayedType>(Ty)->getPointeeType();
12198 QTy = cast<PointerType>(Ty)->getPointeeType();
12201 QTy = cast<BlockPointerType>(Ty)->getPointeeType();
12205 QTy = cast<ReferenceType>(Ty)->getPointeeType();
12208 QTy = cast<MemberPointerType>(Ty)->getPointeeType();
12213 QTy = cast<ArrayType>(Ty)->getElementType();
12217 const VariableArrayType *Vat = cast<VariableArrayType>(Ty);
12229 QTy = cast<FunctionType>(Ty)->getReturnType();
12241 QTy = cast<TypedefType>(Ty)->desugar();
12244 QTy = cast<DecltypeType>(Ty)->desugar();
12247 QTy = cast<AutoType>(Ty)->getDeducedType();
12250 QTy = cast<TypeOfExprType>(Ty)->getUnderlyingExpr()->getType();
12253 QTy = cast<AtomicType>(Ty)->getValueType();