Lines Matching defs:TInfo
2943 Sema::CreateUnaryExprOrTypeTraitExpr(TypeSourceInfo *TInfo,
2947 if (!TInfo)
2950 QualType T = TInfo->getType();
2957 return Owned(new (Context) UnaryExprOrTypeTraitExpr(ExprKind, TInfo,
3014 TypeSourceInfo *TInfo;
3015 (void) GetTypeFromParser(ParsedType::getFromOpaquePtr(TyOrEx), &TInfo);
3016 return CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, ArgRange);
3934 TypeSourceInfo *TInfo;
3935 QualType literalType = GetTypeFromParser(Ty, &TInfo);
3936 if (!TInfo)
3937 TInfo = Context.getTrivialTypeSourceInfo(literalType);
3939 return BuildCompoundLiteralExpr(LParenLoc, TInfo, RParenLoc, InitExpr);
3943 Sema::BuildCompoundLiteralExpr(SourceLocation LParenLoc, TypeSourceInfo *TInfo,
3945 QualType literalType = TInfo->getType();
3987 new (Context) CompoundLiteralExpr(LParenLoc, TInfo, literalType,
4339 TypeSourceInfo *TInfo) {
4355 QualType Ty = TInfo->getType();
4377 return BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc, Literal.take());
4399 return BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc, Literal.take());
4410 return BuildCompoundLiteralExpr(LParenLoc, TInfo, RParenLoc, initE);
8653 TypeSourceInfo *TInfo,
8657 QualType ArgTy = TInfo->getType();
8659 SourceRange TypeRange = TInfo->getTypeLoc().getLocalSourceRange();
8812 TInfo, Comps.data(), Comps.size(),
9146 TypeSourceInfo *TInfo;
9147 GetTypeFromParser(Ty, &TInfo);
9148 return BuildVAArgExpr(BuiltinLoc, E, TInfo, RPLoc);
9152 Expr *E, TypeSourceInfo *TInfo,
9183 if (!TInfo->getType()->isDependentType()) {
9184 if (RequireCompleteType(TInfo->getTypeLoc().getBeginLoc(), TInfo->getType(),
9186 << TInfo->getTypeLoc().getSourceRange()))
9189 if (RequireNonAbstractType(TInfo->getTypeLoc().getBeginLoc(),
9190 TInfo->getType(),
9192 << TInfo->getTypeLoc().getSourceRange()))
9195 if (!TInfo->getType().isPODType(Context)) {
9196 Diag(TInfo->getTypeLoc().getBeginLoc(),
9197 TInfo->getType()->isObjCLifetimeType()
9200 << TInfo->getType()
9201 << TInfo->getTypeLoc().getSourceRange();
9207 if (TInfo->getType()->isPromotableIntegerType()) {
9208 PromoteType = Context.getPromotedIntegerType(TInfo->getType());
9209 if (Context.typesAreCompatible(PromoteType, TInfo->getType()))
9212 if (TInfo->getType()->isSpecificBuiltinType(BuiltinType::Float))
9215 Diag(TInfo->getTypeLoc().getBeginLoc(),
9217 << TInfo->getType()
9219 << TInfo->getTypeLoc().getSourceRange();
9222 QualType T = TInfo->getType().getNonLValueExprType(Context);
9223 return Owned(new (Context) VAArgExpr(BuiltinLoc, E, TInfo, RPLoc, T));