/external/clang/lib/Sema/ |
D | SemaExprObjC.cpp | 3097 Expr *castExpr, in addFixitForObjCARCConversion() argument 3128 Expr *castedE = castExpr; in addFixitForObjCARCConversion() 3174 Expr *castedE = castExpr->IgnoreImpCasts(); in addFixitForObjCARCConversion() 3218 Expr *castExpr, Expr *realCast, in diagnoseObjCARCConversion() argument 3222 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc()); in diagnoseObjCARCConversion() 3228 QualType castExprType = castExpr->getType(); in diagnoseObjCARCConversion() 3265 << castExpr->getSourceRange(); in diagnoseObjCARCConversion() 3268 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion() 3277 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion() 3285 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion() [all …]
|
D | SemaCast.cpp | 87 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/ |
D | TransUnbridgedCasts.cpp | 95 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/unittests/ASTMatchers/ |
D | ASTMatchersTest.cpp | 2829 EXPECT_TRUE(matches("char *p = reinterpret_cast<char *>(&p);",castExpr())); in TEST() 2830 EXPECT_TRUE(matches("void *p = (void *)(&p);", castExpr())); in TEST() 2831 EXPECT_TRUE(matches("char q, *p = const_cast<char *>(&q);", castExpr())); in TEST() 2832 EXPECT_TRUE(matches("char c = char(0);", castExpr())); in TEST() 2836 EXPECT_TRUE(matches("char c = 0;", castExpr())); in TEST() 2838 EXPECT_TRUE(matches("char c = 0, d = c;", castExpr())); in TEST() 2842 EXPECT_TRUE(notMatches("char c = '0';", castExpr())); in TEST() 2843 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr())); in TEST() 2844 EXPECT_TRUE(notMatches("int i = (0);", castExpr())); in TEST() 2845 EXPECT_TRUE(notMatches("int i = 0;", castExpr())); in TEST()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 3066 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, DerefExpr->getType(), in RewriteObjCProtocolExpr() local 3069 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr() 3072 return castExpr; in RewriteObjCProtocolExpr() 4455 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() local 4457 InitExprs.push_back(castExpr); in SynthBlockInitExpr() 5871 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr() local 5877 castExpr); in RewriteObjCIvarRefExpr() 5911 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr() local 5916 IV->getBase()->getLocEnd(), castExpr); in RewriteObjCIvarRefExpr()
|
D | RewriteModernObjC.cpp | 3650 CastExpr *castExpr = in RewriteObjCProtocolExpr() local 3653 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr() 3656 return castExpr; in RewriteObjCProtocolExpr() 5394 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() local 5396 InitExprs.push_back(castExpr); in SynthBlockInitExpr() 7635 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr() local 7647 new (Context) BinaryOperator(castExpr, DRE, BO_Add, in RewriteObjCIvarRefExpr() 7697 castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr() 7703 Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, IvarT, in RewriteObjCIvarRefExpr()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 116 REGISTER_MATCHER(castExpr); in RegistryMaps()
|
/external/clang/include/clang/AST/ |
D | ExprCXX.h | 1247 CastKind kind, Expr *castExpr, unsigned pathSize, in CXXFunctionalCastExpr() argument 1250 castExpr, pathSize, writtenTy), in CXXFunctionalCastExpr()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 1580 const internal::VariadicDynCastAllOfMatcher<Stmt, CastExpr> castExpr; variable
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 7162 void CheckTollFreeBridgeCast(QualType castType, Expr *castExpr); 7164 void CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr); 7166 bool CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr,
|