Lines Matching full:dyn_cast
477 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) {
699 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
701 } else if (VarDecl *FVD = dyn_cast<VarDecl>(D)) {
707 } else if (ObjCInterfaceDecl *MD = dyn_cast<ObjCInterfaceDecl>(D)) {
709 } else if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(D)) {
711 } else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) {
714 dyn_cast<ObjCForwardProtocolDecl>(D)){
716 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) {
819 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){
1068 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) {
1135 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) {
1154 ObjCImplementationDecl *IMD = dyn_cast<ObjCImplementationDecl>(OID);
1155 ObjCCategoryImplDecl *CID = dyn_cast<ObjCCategoryImplDecl>(OID);
1246 dyn_cast<ObjCPropertyRefExpr>(BinOp->getLHS())) {
1287 if (Expr *Exp = dyn_cast<Expr>(Receiver))
1324 dyn_cast<ObjCPropertyRefExpr>(PropOrGetterRefExpr)) {
1361 if (Expr *Exp = dyn_cast<Expr>(Receiver))
1384 if ((ICE = dyn_cast<ImplicitCastExpr>(Parent))) {
1416 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType());
1464 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType());
1505 if (ObjCIvarRefExpr *IvarRefExpr = dyn_cast<ObjCIvarRefExpr>(S)) {
1511 if (ObjCMessageExpr *MsgRefExpr = dyn_cast<ObjCMessageExpr>(S)) {
1618 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->getElement())) {
2218 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) {
2247 if (VarDecl *VD = dyn_cast<VarDecl>(Dcl)) {
2251 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Dcl)) {
2257 proto = dyn_cast<FunctionProtoType>(funcType);
2262 else if (FieldDecl *FD = dyn_cast<FieldDecl>(Dcl)) {
2341 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E))
2429 const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(funcType);
2976 while (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(recExpr))
3001 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(userExpr)) {
3012 else if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(userExpr)) {
3014 while ((CE = dyn_cast<CStyleCastExpr>(userExpr)))
4141 if (VarDecl *Var = dyn_cast<VarDecl>(VD))
4543 if (BlockExpr *CBE = dyn_cast<BlockExpr>(*CI))
4549 if (BlockDeclRefExpr *CDRE = dyn_cast<BlockDeclRefExpr>(S)) {
4554 else if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S))
4571 if (BlockExpr *CBE = dyn_cast<BlockExpr>(*CI)) {
4584 if (BlockDeclRefExpr *CDRE = dyn_cast<BlockDeclRefExpr>(S)) {
4589 else if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
4590 if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl()))
4603 const FunctionProtoType *FTP = dyn_cast<FunctionProtoType>(FT);
4633 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
4636 dyn_cast<BlockDeclRefExpr>(BlockExp)) {
4638 } else if (const MemberExpr *MExpr = dyn_cast<MemberExpr>(BlockExp)) {
4641 else if (const ParenExpr *PRE = dyn_cast<ParenExpr>(BlockExp)) {
4644 else if (const ImplicitCastExpr *IEXPR = dyn_cast<ImplicitCastExpr>(BlockExp))
4647 dyn_cast<ConditionalOperator>(BlockExp)) {
4659 } else if (const ObjCIvarRefExpr *IRE = dyn_cast<ObjCIvarRefExpr>(BlockExp)) {
4667 const FunctionProtoType *FTP = dyn_cast<FunctionProtoType>(FT);
4752 if (BlockDeclRefExpr *BDRE = dyn_cast<BlockDeclRefExpr>(DeclRefExp))
4794 if (VarDecl *Var = dyn_cast<VarDecl>(VD))
4946 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
4953 if (VarDecl *VD = dyn_cast<VarDecl>(ND))
4955 else if (TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(ND))
4957 else if (FieldDecl *FD = dyn_cast<FieldDecl>(ND))
5202 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E))
5479 dyn_cast<ObjCForCollectionStmt>(Stmts.back()))
5500 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(S)) {
5524 if (ObjCIvarRefExpr *IvarRefExpr = dyn_cast<ObjCIvarRefExpr>(ChildStmt)) {
5529 if (ObjCIvarRefExpr *IRE = dyn_cast<ObjCIvarRefExpr>(newStmt))
5538 if (Expr *PropOrImplicitRefExpr = dyn_cast<Expr>(ChildStmt))
5550 if (Expr *Exp = dyn_cast<Expr>(ChildStmt))
5559 if (BlockExpr *BE = dyn_cast<BlockExpr>(S)) {
5586 if (ObjCEncodeExpr *AtEncode = dyn_cast<ObjCEncodeExpr>(S))
5590 Expr *PropOrImplicitRefExpr = dyn_cast<Expr>(S);
5644 return RewritePropertyOrImplicitSetter(BinOp, dyn_cast<Expr>(newStmt), SrcRange);
5650 if (ObjCSelectorExpr *AtSelector = dyn_cast<ObjCSelectorExpr>(S))
5653 if (ObjCStringLiteral *AtString = dyn_cast<ObjCStringLiteral>(S))
5656 if (ObjCMessageExpr *MessExpr = dyn_cast<ObjCMessageExpr>(S)) {
5679 if (ObjCAtTryStmt *StmtTry = dyn_cast<ObjCAtTryStmt>(S))
5682 if (ObjCAtSynchronizedStmt *StmtTry = dyn_cast<ObjCAtSynchronizedStmt>(S))
5685 if (ObjCAtThrowStmt *StmtThrow = dyn_cast<ObjCAtThrowStmt>(S))
5688 if (ObjCProtocolExpr *ProtocolExp = dyn_cast<ObjCProtocolExpr>(S))
5692 dyn_cast<ObjCForCollectionStmt>(S))
5696 dyn_cast<BreakStmt>(S))
5699 dyn_cast<ContinueStmt>(S))
5704 if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
5721 if (ValueDecl *ND = dyn_cast<ValueDecl>(SD)) {
5726 if (VarDecl *VD = dyn_cast<VarDecl>(SD)) {
5738 if (TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(SD)) {
5747 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S))
5759 if (BlockDeclRefExpr *BDRE = dyn_cast<BlockDeclRefExpr>(S)) {
5763 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
5771 if (CallExpr *CE = dyn_cast<CallExpr>(S)) {
5778 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S)) {
5782 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(S)) {
5817 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
5848 if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
5865 if (ObjCImplementationDecl *CI = dyn_cast<ObjCImplementationDecl>(D))
5867 else if (ObjCCategoryImplDecl *CI = dyn_cast<ObjCCategoryImplDecl>(D))
5869 else if (ObjCClassDecl *CD = dyn_cast<ObjCClassDecl>(D))
5871 else if (VarDecl *VD = dyn_cast<VarDecl>(D)) {
5878 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(VD->getInit())) {
5902 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(VD->getInit())) {
5908 if (TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(D)) {
5915 if (RecordDecl *RD = dyn_cast<RecordDecl>(D)) {