/external/clang/lib/Sema/ |
D | SemaCast.cpp | 51 : Self(S), SrcExpr(src), DestType(destType), in CastOperation() 65 ExprResult SrcExpr; member 119 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign() 125 Expr *src = SrcExpr.get(); in checkObjCARCConversion() 129 SrcExpr = src; in checkObjCARCConversion() 137 SrcExpr = Self.CheckPlaceholderExpr(SrcExpr.get()); in checkNonOverloadPlaceholders() 138 if (SrcExpr.isInvalid()) in checkNonOverloadPlaceholders() 156 static TryCastResult TryLValueToRValueCast(Sema &Self, Expr *SrcExpr, 161 static TryCastResult TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr, 180 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr, [all …]
|
D | SemaExprObjC.cpp | 3883 Expr *&SrcExpr) { in CheckObjCBridgeRelatedConversions() argument 3906 SourceLocation SrcExprEndLoc = getLocForEndOfToken(SrcExpr->getLocEnd()); in CheckObjCBridgeRelatedConversions() 3910 << FixItHint::CreateInsertion(SrcExpr->getLocStart(), ExpressionString) in CheckObjCBridgeRelatedConversions() 3918 Expr *args[] = { SrcExpr }; in CheckObjCBridgeRelatedConversions() 3923 SrcExpr = msg.get(); in CheckObjCBridgeRelatedConversions() 3931 SourceLocation SrcExprEndLoc = getLocForEndOfToken(SrcExpr->getLocEnd()); in CheckObjCBridgeRelatedConversions() 3949 << FixItHint::CreateInsertion(SrcExpr->getLocStart(), "[") in CheckObjCBridgeRelatedConversions() 3956 BuildInstanceMessageImplicit(SrcExpr, SrcType, in CheckObjCBridgeRelatedConversions() 3960 SrcExpr = msg.get(); in CheckObjCBridgeRelatedConversions()
|
D | SemaStmt.cpp | 1172 Expr *SrcExpr) { in DiagnoseAssignmentEnum() argument 1173 if (Diags.isIgnored(diag::warn_not_in_enum_assignment, SrcExpr->getExprLoc())) in DiagnoseAssignmentEnum() 1179 if (!SrcExpr->isTypeDependent() && !SrcExpr->isValueDependent() && in DiagnoseAssignmentEnum() 1180 SrcExpr->isIntegerConstantExpr(Context)) { in DiagnoseAssignmentEnum() 1185 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum() 1191 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment) in DiagnoseAssignmentEnum() 1216 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment) in DiagnoseAssignmentEnum()
|
D | SemaExpr.cpp | 11817 Expr *SrcExpr = Exp->IgnoreParenImpCasts(); in ConversionToObjCStringLiteralCheck() local 11818 if (OpaqueValueExpr *OV = dyn_cast<OpaqueValueExpr>(SrcExpr)) in ConversionToObjCStringLiteralCheck() 11820 SrcExpr = OV->getSourceExpr()->IgnoreParenImpCasts(); in ConversionToObjCStringLiteralCheck() 11822 StringLiteral *SL = dyn_cast<StringLiteral>(SrcExpr); in ConversionToObjCStringLiteralCheck() 11832 const Expr *SrcExpr) { in maybeDiagnoseAssignmentToFunction() argument 11834 !SrcExpr->getType()->isFunctionType()) in maybeDiagnoseAssignmentToFunction() 11837 auto *DRE = dyn_cast<DeclRefExpr>(SrcExpr->IgnoreParenImpCasts()); in maybeDiagnoseAssignmentToFunction() 11847 SrcExpr->getLocStart()); in maybeDiagnoseAssignmentToFunction() 11853 Expr *SrcExpr, AssignmentAction Action, in DiagnoseAssignmentResult() argument 11871 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult() [all …]
|
D | SemaOverload.cpp | 10652 ExprResult &SrcExpr, bool doFunctionPointerConverion, in ResolveAndFixSingleFunctionTemplateSpecialization() argument 10656 assert(SrcExpr.get()->getType() == Context.OverloadTy); in ResolveAndFixSingleFunctionTemplateSpecialization() 10658 OverloadExpr::FindResult ovl = OverloadExpr::find(SrcExpr.get()); in ResolveAndFixSingleFunctionTemplateSpecialization() 10664 if (DiagnoseUseOfDecl(fn, SrcExpr.get()->getLocStart())) { in ResolveAndFixSingleFunctionTemplateSpecialization() 10665 SrcExpr = ExprError(); in ResolveAndFixSingleFunctionTemplateSpecialization() 10687 SrcExpr = ExprError(); in ResolveAndFixSingleFunctionTemplateSpecialization() 10693 FixOverloadedFunctionReference(SrcExpr.get(), found, fn); in ResolveAndFixSingleFunctionTemplateSpecialization() 10700 SrcExpr = ExprError(); in ResolveAndFixSingleFunctionTemplateSpecialization() 10713 NoteAllOverloadCandidates(SrcExpr.get()); in ResolveAndFixSingleFunctionTemplateSpecialization() 10715 SrcExpr = ExprError(); in ResolveAndFixSingleFunctionTemplateSpecialization() [all …]
|
D | TreeTransform.h | 2941 Expr *SrcExpr, TypeSourceInfo *DstTInfo, in RebuildConvertVectorExpr() argument 2943 return SemaRef.SemaConvertVectorExpr(SrcExpr, DstTInfo, in RebuildConvertVectorExpr() 10981 ExprResult SrcExpr = getDerived().TransformExpr(E->getSrcExpr()); in TransformConvertVectorExpr() local 10982 if (SrcExpr.isInvalid()) in TransformConvertVectorExpr() 10991 SrcExpr.get() == E->getSrcExpr()) in TransformConvertVectorExpr() 10995 SrcExpr.get(), Type, in TransformConvertVectorExpr()
|
/external/clang/include/clang/AST/ |
D | Expr.h | 3555 Stmt *SrcExpr; 3564 ConvertVectorExpr(Expr* SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument 3569 DstType->isDependentType() || SrcExpr->isValueDependent(), in ConvertVectorExpr() 3571 SrcExpr->isInstantiationDependent()), in ConvertVectorExpr() 3573 SrcExpr->containsUnexpandedParameterPack())), in ConvertVectorExpr() 3574 SrcExpr(SrcExpr), TInfo(TI), BuiltinLoc(BuiltinLoc), RParenLoc(RParenLoc) {} in ConvertVectorExpr() 3577 Expr *getSrcExpr() const { return cast<Expr>(SrcExpr); } in getSrcExpr() 3601 child_range children() { return child_range(&SrcExpr, &SrcExpr+1); } in children() 4708 Stmt *SrcExpr; 4716 AsTypeExpr(Expr* SrcExpr, QualType DstType, in AsTypeExpr() argument [all …]
|
/external/clang/lib/CodeGen/ |
D | CGObjC.cpp | 2957 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction() local 2959 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction() 3032 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicGetterCopyHelperFunction() local 3035 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicGetterCopyHelperFunction()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 2510 ExprResult &SrcExpr, 7520 Expr *&SrcExpr); 7522 bool ConversionToObjCStringLiteralCheck(QualType DstType, Expr *&SrcExpr); 8383 Expr *SrcExpr, AssignmentAction Action, 8395 Expr *SrcExpr);
|
/external/clang/lib/Serialization/ |
D | ASTReaderStmt.cpp | 901 E->SrcExpr = Reader.ReadSubExpr(); in VisitConvertVectorExpr() 1727 E->SrcExpr = Reader.ReadSubExpr(); in VisitAsTypeExpr()
|