Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaExprObjC.cpp3377 Expr *castExpr, in addFixitForObjCARCConversion() argument
3408 Expr *castedE = castExpr; in addFixitForObjCARCConversion()
3454 Expr *castedE = castExpr->IgnoreImpCasts(); in addFixitForObjCARCConversion()
3498 Expr *castExpr, Expr *realCast, in diagnoseObjCARCConversion() argument
3502 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc()); in diagnoseObjCARCConversion()
3508 QualType castExprType = castExpr->getType(); in diagnoseObjCARCConversion()
3547 << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3550 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3559 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion()
3567 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
[all …]
DSemaCast.cpp88 ExprResult complete(CastExpr *castExpr) { in complete()
92 castExpr = ImplicitCastExpr::Create(Self.Context, in complete()
94 CK_Dependent, castExpr, nullptr, in complete()
95 castExpr->getValueKind()); in complete()
97 return castExpr; in complete()
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp859 EXPECT_TRUE(matches("char *p = reinterpret_cast<char *>(&p);",castExpr())); in TEST()
860 EXPECT_TRUE(matches("void *p = (void *)(&p);", castExpr())); in TEST()
861 EXPECT_TRUE(matches("char q, *p = const_cast<char *>(&q);", castExpr())); in TEST()
862 EXPECT_TRUE(matches("char c = char(0);", castExpr())); in TEST()
866 EXPECT_TRUE(matches("char c = 0;", castExpr())); in TEST()
868 EXPECT_TRUE(matches("char c = 0, d = c;", castExpr())); in TEST()
872 EXPECT_TRUE(notMatches("char c = '0';", castExpr())); in TEST()
873 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr())); in TEST()
874 EXPECT_TRUE(notMatches("int i = (0);", castExpr())); in TEST()
875 EXPECT_TRUE(notMatches("int i = 0;", castExpr())); in TEST()
DASTMatchersNarrowingTest.cpp184 castExpr(hasCastKind(CK_NullToPointer)))); in TEST()
186 castExpr(hasCastKind(CK_DerivedToBase)))); in TEST()
/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.cpp608 while (auto castExpr = dyn_cast<CastExpr>(init->IgnoreParens())) { in tryEmitARCCopyWeakInit() local
609 switch (castExpr->getCastKind()) { in tryEmitARCCopyWeakInit()
620 const Expr *srcExpr = castExpr->getSubExpr(); in tryEmitARCCopyWeakInit()
649 init = castExpr->getSubExpr(); in tryEmitARCCopyWeakInit()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp3048 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, DerefExpr->getType(), in RewriteObjCProtocolExpr() local
3051 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr()
3054 return castExpr; in RewriteObjCProtocolExpr()
4422 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() local
4424 InitExprs.push_back(castExpr); in SynthBlockInitExpr()
5835 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr() local
5841 castExpr); in RewriteObjCIvarRefExpr()
5875 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr() local
5880 IV->getBase()->getLocEnd(), castExpr); in RewriteObjCIvarRefExpr()
DRewriteModernObjC.cpp3598 CastExpr *castExpr = in RewriteObjCProtocolExpr() local
3601 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr()
3604 return castExpr; in RewriteObjCProtocolExpr()
5294 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() local
5296 InitExprs.push_back(castExpr); in SynthBlockInitExpr()
7487 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr() local
7499 new (Context) BinaryOperator(castExpr, DRE, BO_Add, in RewriteObjCIvarRefExpr()
7549 castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr()
7555 Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, IvarT, in RewriteObjCIvarRefExpr()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp119 REGISTER_MATCHER(castExpr); in RegistryMaps()
/external/clang/include/clang/AST/
DExprCXX.h1403 CastKind kind, Expr *castExpr, unsigned pathSize, in CXXFunctionalCastExpr() argument
1406 castExpr, pathSize, writtenTy), in CXXFunctionalCastExpr()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1920 const internal::VariadicDynCastAllOfMatcher<Stmt, CastExpr> castExpr; variable
/external/clang/include/clang/Sema/
DSema.h7674 void CheckTollFreeBridgeCast(QualType castType, Expr *castExpr);
7676 void CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr);
7678 bool CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr,