Home
last modified time | relevance | path

Searched refs:castExpr (Results 1 – 11 of 11) sorted by relevance

/external/clang/lib/Sema/
DSemaExprObjC.cpp3348 Expr *castExpr, in addFixitForObjCARCConversion() argument
3379 Expr *castedE = castExpr; in addFixitForObjCARCConversion()
3425 Expr *castedE = castExpr->IgnoreImpCasts(); in addFixitForObjCARCConversion()
3469 Expr *castExpr, Expr *realCast, in diagnoseObjCARCConversion() argument
3473 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc()); in diagnoseObjCARCConversion()
3479 QualType castExprType = castExpr->getType(); in diagnoseObjCARCConversion()
3516 << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3519 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3528 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion()
3536 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
[all …]
DSemaCast.cpp87 ExprResult complete(CastExpr *castExpr) { in complete()
91 castExpr = ImplicitCastExpr::Create(Self.Context, in complete()
93 CK_Dependent, castExpr, nullptr, in complete()
94 castExpr->getValueKind()); in complete()
96 return castExpr; in complete()
/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp95 Expr *castExpr = E->getSubExpr(); in VisitCastExpr() local
96 QualType castExprType = castExpr->getType(); in VisitCastExpr()
105 if (castExpr->isNullPointerConstant(Pass.Ctx, in VisitCastExpr()
109 SourceLocation loc = castExpr->getExprLoc(); in VisitCastExpr()
/external/clang/lib/CodeGen/
DCGDecl.cpp605 while (auto castExpr = dyn_cast<CastExpr>(init->IgnoreParens())) { in tryEmitARCCopyWeakInit() local
606 switch (castExpr->getCastKind()) { in tryEmitARCCopyWeakInit()
617 const Expr *srcExpr = castExpr->getSubExpr(); in tryEmitARCCopyWeakInit()
646 init = castExpr->getSubExpr(); in tryEmitARCCopyWeakInit()
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp3077 EXPECT_TRUE(matches("char *p = reinterpret_cast<char *>(&p);",castExpr())); in TEST()
3078 EXPECT_TRUE(matches("void *p = (void *)(&p);", castExpr())); in TEST()
3079 EXPECT_TRUE(matches("char q, *p = const_cast<char *>(&q);", castExpr())); in TEST()
3080 EXPECT_TRUE(matches("char c = char(0);", castExpr())); in TEST()
3084 EXPECT_TRUE(matches("char c = 0;", castExpr())); in TEST()
3086 EXPECT_TRUE(matches("char c = 0, d = c;", castExpr())); in TEST()
3090 EXPECT_TRUE(notMatches("char c = '0';", castExpr())); in TEST()
3091 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr())); in TEST()
3092 EXPECT_TRUE(notMatches("int i = (0);", castExpr())); in TEST()
3093 EXPECT_TRUE(notMatches("int i = 0;", castExpr())); in TEST()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp3055 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, DerefExpr->getType(), in RewriteObjCProtocolExpr() local
3058 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr()
3061 return castExpr; in RewriteObjCProtocolExpr()
4441 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() local
4443 InitExprs.push_back(castExpr); in SynthBlockInitExpr()
5856 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr() local
5862 castExpr); in RewriteObjCIvarRefExpr()
5896 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr() local
5901 IV->getBase()->getLocEnd(), castExpr); in RewriteObjCIvarRefExpr()
DRewriteModernObjC.cpp3631 CastExpr *castExpr = in RewriteObjCProtocolExpr() local
3634 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr()
3637 return castExpr; in RewriteObjCProtocolExpr()
5372 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() local
5374 InitExprs.push_back(castExpr); in SynthBlockInitExpr()
7612 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr() local
7624 new (Context) BinaryOperator(castExpr, DRE, BO_Add, in RewriteObjCIvarRefExpr()
7674 castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr()
7680 Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, IvarT, in RewriteObjCIvarRefExpr()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp115 REGISTER_MATCHER(castExpr); in RegistryMaps()
/external/clang/include/clang/AST/
DExprCXX.h1322 CastKind kind, Expr *castExpr, unsigned pathSize, in CXXFunctionalCastExpr() argument
1325 castExpr, pathSize, writtenTy), in CXXFunctionalCastExpr()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1695 const internal::VariadicDynCastAllOfMatcher<Stmt, CastExpr> castExpr; variable
/external/clang/include/clang/Sema/
DSema.h7503 void CheckTollFreeBridgeCast(QualType castType, Expr *castExpr);
7505 void CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr);
7507 bool CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr,