Home
last modified time | relevance | path

Searched refs:SrcExpr (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/Sema/
DSemaCast.cpp52 : Self(S), SrcExpr(src), DestType(destType), in CastOperation()
66 ExprResult SrcExpr; member
120 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign()
126 Expr *src = SrcExpr.get(); in checkObjCARCConversion()
130 SrcExpr = src; in checkObjCARCConversion()
138 SrcExpr = Self.CheckPlaceholderExpr(SrcExpr.get()); in checkNonOverloadPlaceholders()
139 if (SrcExpr.isInvalid()) in checkNonOverloadPlaceholders()
157 static TryCastResult TryLValueToRValueCast(Sema &Self, Expr *SrcExpr,
162 static TryCastResult TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr,
181 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr,
[all …]
DSemaExprObjC.cpp3920 Expr *&SrcExpr, bool Diagnose) { in CheckObjCBridgeRelatedConversions() argument
3945 SourceLocation SrcExprEndLoc = getLocForEndOfToken(SrcExpr->getLocEnd()); in CheckObjCBridgeRelatedConversions()
3949 << FixItHint::CreateInsertion(SrcExpr->getLocStart(), ExpressionString) in CheckObjCBridgeRelatedConversions()
3956 Expr *args[] = { SrcExpr }; in CheckObjCBridgeRelatedConversions()
3961 SrcExpr = msg.get(); in CheckObjCBridgeRelatedConversions()
3972 getLocForEndOfToken(SrcExpr->getLocEnd()); in CheckObjCBridgeRelatedConversions()
3991 << FixItHint::CreateInsertion(SrcExpr->getLocStart(), "[") in CheckObjCBridgeRelatedConversions()
3998 BuildInstanceMessageImplicit(SrcExpr, SrcType, in CheckObjCBridgeRelatedConversions()
4002 SrcExpr = msg.get(); in CheckObjCBridgeRelatedConversions()
DSemaStmt.cpp1183 Expr *SrcExpr) { in DiagnoseAssignmentEnum() argument
1184 if (Diags.isIgnored(diag::warn_not_in_enum_assignment, SrcExpr->getExprLoc())) in DiagnoseAssignmentEnum()
1190 if (!SrcExpr->isTypeDependent() && !SrcExpr->isValueDependent() && in DiagnoseAssignmentEnum()
1191 SrcExpr->isIntegerConstantExpr(Context)) { in DiagnoseAssignmentEnum()
1196 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
1202 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment) in DiagnoseAssignmentEnum()
1227 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment) in DiagnoseAssignmentEnum()
DSemaExpr.cpp12356 Expr *SrcExpr = Exp->IgnoreParenImpCasts(); in ConversionToObjCStringLiteralCheck() local
12357 if (OpaqueValueExpr *OV = dyn_cast<OpaqueValueExpr>(SrcExpr)) in ConversionToObjCStringLiteralCheck()
12359 SrcExpr = OV->getSourceExpr()->IgnoreParenImpCasts(); in ConversionToObjCStringLiteralCheck()
12361 StringLiteral *SL = dyn_cast<StringLiteral>(SrcExpr); in ConversionToObjCStringLiteralCheck()
12373 const Expr *SrcExpr) { in maybeDiagnoseAssignmentToFunction() argument
12375 !SrcExpr->getType()->isFunctionType()) in maybeDiagnoseAssignmentToFunction()
12378 auto *DRE = dyn_cast<DeclRefExpr>(SrcExpr->IgnoreParenImpCasts()); in maybeDiagnoseAssignmentToFunction()
12388 SrcExpr->getLocStart()); in maybeDiagnoseAssignmentToFunction()
12394 Expr *SrcExpr, AssignmentAction Action, in DiagnoseAssignmentResult() argument
12412 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
[all …]
DSemaOverload.cpp10761 ExprResult &SrcExpr) { in resolveAndFixAddressOfOnlyViableOverloadCandidate() argument
10762 Expr *E = SrcExpr.get(); in resolveAndFixAddressOfOnlyViableOverloadCandidate()
10777 SrcExpr = DefaultFunctionArrayConversion(Fixed, /*Diagnose=*/false); in resolveAndFixAddressOfOnlyViableOverloadCandidate()
10779 SrcExpr = Fixed; in resolveAndFixAddressOfOnlyViableOverloadCandidate()
10882 ExprResult &SrcExpr, bool doFunctionPointerConverion, in ResolveAndFixSingleFunctionTemplateSpecialization() argument
10886 assert(SrcExpr.get()->getType() == Context.OverloadTy); in ResolveAndFixSingleFunctionTemplateSpecialization()
10888 OverloadExpr::FindResult ovl = OverloadExpr::find(SrcExpr.get()); in ResolveAndFixSingleFunctionTemplateSpecialization()
10894 if (DiagnoseUseOfDecl(fn, SrcExpr.get()->getLocStart())) { in ResolveAndFixSingleFunctionTemplateSpecialization()
10895 SrcExpr = ExprError(); in ResolveAndFixSingleFunctionTemplateSpecialization()
10917 SrcExpr = ExprError(); in ResolveAndFixSingleFunctionTemplateSpecialization()
[all …]
DTreeTransform.h3024 Expr *SrcExpr, TypeSourceInfo *DstTInfo, in RebuildConvertVectorExpr() argument
3026 return SemaRef.SemaConvertVectorExpr(SrcExpr, DstTInfo, in RebuildConvertVectorExpr()
11317 ExprResult SrcExpr = getDerived().TransformExpr(E->getSrcExpr()); in TransformConvertVectorExpr() local
11318 if (SrcExpr.isInvalid()) in TransformConvertVectorExpr()
11327 SrcExpr.get() == E->getSrcExpr()) in TransformConvertVectorExpr()
11331 SrcExpr.get(), Type, in TransformConvertVectorExpr()
/external/clang/include/clang/AST/
DExpr.h3489 Stmt *SrcExpr;
3498 ConvertVectorExpr(Expr* SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument
3503 DstType->isDependentType() || SrcExpr->isValueDependent(), in ConvertVectorExpr()
3505 SrcExpr->isInstantiationDependent()), in ConvertVectorExpr()
3507 SrcExpr->containsUnexpandedParameterPack())), in ConvertVectorExpr()
3508 SrcExpr(SrcExpr), TInfo(TI), BuiltinLoc(BuiltinLoc), RParenLoc(RParenLoc) {} in ConvertVectorExpr()
3511 Expr *getSrcExpr() const { return cast<Expr>(SrcExpr); } in getSrcExpr()
3535 child_range children() { return child_range(&SrcExpr, &SrcExpr+1); } in children()
4611 Stmt *SrcExpr;
4619 AsTypeExpr(Expr* SrcExpr, QualType DstType, in AsTypeExpr() argument
[all …]
/external/clang/lib/CodeGen/
DCGObjC.cpp3224 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction() local
3226 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction()
3299 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicGetterCopyHelperFunction() local
3302 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicGetterCopyHelperFunction()
/external/clang/include/clang/Sema/
DSema.h2574 bool resolveAndFixAddressOfOnlyViableOverloadCandidate(ExprResult &SrcExpr);
2582 ExprResult &SrcExpr,
7691 Expr *&SrcExpr, bool Diagnose = true);
7693 bool ConversionToObjCStringLiteralCheck(QualType DstType, Expr *&SrcExpr,
8687 Expr *SrcExpr, AssignmentAction Action,
8699 Expr *SrcExpr);
/external/clang/lib/Serialization/
DASTReaderStmt.cpp906 E->SrcExpr = Reader.ReadSubExpr(); in VisitConvertVectorExpr()
1749 E->SrcExpr = Reader.ReadSubExpr(); in VisitAsTypeExpr()