Lines Matching refs:getDeclContext
66 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod()
74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
125 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
127 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()
371 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef()
373 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef()
1134 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
2224 dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) in addMethodToGlobalList()
2297 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl()) in AddMethodToGlobalPool()
2880 = cast<ObjCContainerDecl>(method->getDeclContext()); in OverrideSearch()
3016 if (isa<ObjCProtocolDecl>(overridden->getDeclContext()) || in CheckObjCMethodOverrides()
3021 } else if (isa<ObjCImplDecl>(ObjCMethod->getDeclContext())) { in CheckObjCMethodOverrides()
3039 !isa<ObjCCategoryImplDecl>(overridden->getDeclContext())) { in CheckObjCMethodOverrides()
3044 if (isa<ObjCProtocolDecl>(SuperOverridden->getDeclContext()) || in CheckObjCMethodOverrides()
3068 if (isa<ObjCInterfaceDecl>(ObjCMethod->getDeclContext()) || in CheckObjCMethodOverrides()
3069 isa<ObjCImplementationDecl>(ObjCMethod->getDeclContext())) in CheckObjCMethodOverrides()
3071 isa<ObjCProtocolDecl>(overridden->getDeclContext())); in CheckObjCMethodOverrides()
3073 if (CurrentClass && overridden->getDeclContext() != CurrentClass && in CheckObjCMethodOverrides()
3074 isa<ObjCInterfaceDecl>(overridden->getDeclContext()) && in CheckObjCMethodOverrides()