Home
last modified time | relevance | path

Searched refs:IDecl (Results 1 – 19 of 19) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclObjC.cpp427 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC() argument
428 : CurrentIDecl(IDecl) {} in ObjCInterfaceValidatorCCC()
461 ObjCInterfaceDecl *IDecl in ActOnStartClassInterface() local
471 IDecl->setInvalidDecl(); in ActOnStartClassInterface()
476 ProcessDeclAttributeList(TUScope, IDecl, AttrList); in ActOnStartClassInterface()
477 PushOnScopeChains(IDecl, TUScope); in ActOnStartClassInterface()
481 if (!IDecl->hasDefinition()) in ActOnStartClassInterface()
482 IDecl->startDefinition(); in ActOnStartClassInterface()
492 ObjCInterfaceValidatorCCC Validator(IDecl); in ActOnStartClassInterface()
504 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnStartClassInterface()
[all …]
DSemaObjCProperty.cpp525 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() local
526 if (IDecl) in CreatePropertyDecl()
529 if (IDecl->ClassImplementsProtocol(PNSCopying, true)) in CreatePropertyDecl()
810 ObjCInterfaceDecl* IDecl = 0; in ActOnPropertyImplDecl() local
816 IDecl = IC->getClassInterface(); in ActOnPropertyImplDecl()
819 assert(IDecl && in ActOnPropertyImplDecl()
823 property = IDecl->FindPropertyDeclaration(PropertyId); in ActOnPropertyImplDecl()
825 Diag(PropertyLoc, diag::error_bad_property_decl) << IDecl->getDeclName(); in ActOnPropertyImplDecl()
854 Ext = IDecl->known_extensions_begin(), in ActOnPropertyImplDecl()
855 ExtEnd = IDecl->known_extensions_end(); Ext != ExtEnd; ++Ext) { in ActOnPropertyImplDecl()
[all …]
DSemaExprMember.cpp1144 ObjCInterfaceDecl *IDecl = OTy->getInterface(); in LookupMemberExpr() local
1145 if (!IDecl) { in LookupMemberExpr()
1168 IDecl->lookupInstanceVariable(Member, ClassDeclared)) { in LookupMemberExpr()
1182 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in LookupMemberExpr()
1190 Validator, IDecl)) { in LookupMemberExpr()
1194 << IDecl->getDeclName() << MemberName << IV->getDeclName() in LookupMemberExpr()
1207 if (IsArrow && IDecl->FindPropertyDeclaration(Member)) { in LookupMemberExpr()
1216 << IDecl->getDeclName() << MemberName in LookupMemberExpr()
1254 if (!declaresSameEntity(ClassDeclared, IDecl) || in LookupMemberExpr()
1258 } else if (!IDecl->isSuperClassOf(ClassOfMethodDecl)) in LookupMemberExpr()
[all …]
DSemaDecl.cpp335 } else if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(IIDecl)) { in getTypeName() local
336 (void)DiagnoseUseOfDecl(IDecl, NameLoc); in getTypeName()
338 T = Context.getObjCInterfaceType(IDecl); in getTypeName()
1431 NamedDecl *IDecl = LookupSingleName(TUScope, Id, IdLoc, LookupOrdinaryName); in getObjCInterfaceDecl() local
1433 if (!IDecl && DoTypoCorrection) { in getObjCInterfaceDecl()
1440 IDecl = C.getCorrectionDeclAs<ObjCInterfaceDecl>(); in getObjCInterfaceDecl()
1442 << Id << IDecl->getDeclName() in getObjCInterfaceDecl()
1443 << FixItHint::CreateReplacement(IdLoc, IDecl->getNameAsString()); in getObjCInterfaceDecl()
1444 Diag(IDecl->getLocation(), diag::note_previous_decl) in getObjCInterfaceDecl()
1445 << IDecl->getDeclName(); in getObjCInterfaceDecl()
[all …]
DSemaCodeComplete.cpp6865 Decl *IDecl = 0; in CodeCompleteObjCMethodDecl() local
6868 IDecl = cast<Decl>(OCD); in CodeCompleteObjCMethodDecl()
6873 if (Decl *D = IDecl) { in CodeCompleteObjCMethodDecl()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp748 bool ObjCMethodCall::canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl, in canBeOverridenInSubclass() argument
750 assert(IDecl); in canBeOverridenInSubclass()
758 SourceLocation InterfLoc = IDecl->getEndOfDefinitionLoc(); in canBeOverridenInSubclass()
774 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass()
786 IDecl = D->getClassInterface(); in canBeOverridenInSubclass()
787 if (!IDecl) in canBeOverridenInSubclass()
790 IDecl = IDecl->getSuperClass(); in canBeOverridenInSubclass()
791 if (!IDecl) in canBeOverridenInSubclass()
831 if (ObjCInterfaceDecl *IDecl = ReceiverT->getInterfaceDecl()) in getRuntimeDefinition() local
832 if (!canBeOverridenInSubclass(IDecl, Sel)) in getRuntimeDefinition()
[all …]
/external/clang/lib/Analysis/
DCallGraph.cpp69 if (ObjCInterfaceDecl *IDecl = ME->getReceiverInterface()) { in VisitObjCMessageExpr() local
75 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr()
77 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp279 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
346 virtual void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
533 virtual void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
1072 void RewriteObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument
1089 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1115 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1118 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl()
1122 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1891 ObjCInterfaceDecl *IDecl = Ptr->getObjectType()->getInterface(); in RewriteObjCTryStmt() local
1892 if (IDecl) { in RewriteObjCTryStmt()
[all …]
DRewriteModernObjC.cpp319 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
394 bool IsTagDefinedInsideClass(ObjCContainerDecl *IDecl, TagDecl *Tag,
449 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
828 static void WriteInternalIvarName(const ObjCInterfaceDecl *IDecl, in WriteInternalIvarName() argument
831 Result += IDecl->getName(); in WriteInternalIvarName()
1252 void RewriteModernObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument
1269 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1295 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1298 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl()
1302 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp1234 ObjCInterfaceDecl *IDecl = this; in ClassImplementsProtocol() local
1237 PI = IDecl->protocol_begin(), E = IDecl->protocol_end(); PI != E; ++PI){ in ClassImplementsProtocol()
1265 if (IDecl->getSuperClass()) in ClassImplementsProtocol()
1267 IDecl->getSuperClass()->ClassImplementsProtocol(lProto, lookupCategory, in ClassImplementsProtocol()
1481 ObjCInterfaceDecl *IDecl, in Create() argument
1486 IDecl, in Create()
1488 if (IDecl) { in Create()
1490 CatDecl->NextClassCategory = IDecl->getCategoryListRaw(); in Create()
1491 if (IDecl->hasDefinition()) { in Create()
1492 IDecl->setCategoryListRaw(CatDecl); in Create()
[all …]
DASTContext.cpp1692 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(OI); in DeepCollectObjCIvars() local
1693 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in DeepCollectObjCIvars()
/external/clang/lib/ARCMigrate/
DTransAutoreleasePool.cpp389 bool isNSAutoreleasePool(ObjCInterfaceDecl *IDecl) { in isNSAutoreleasePool() argument
390 return IDecl && IDecl->getIdentifier() == PoolII; in isNSAutoreleasePool()
/external/clang/lib/StaticAnalyzer/Checkers/
DIvarInvalidationChecker.cpp386 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit() local
387 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in visit()
/external/clang/lib/Parse/
DParseObjc.cpp1305 Decl *IDecl; in ParseObjCClassInstanceVariables() member
1309 ObjCIvarCallback(Parser &P, Decl *IDecl, tok::ObjCKeywordKind V, in ParseObjCClassInstanceVariables()
1311 P(P), IDecl(IDecl), visibility(V), AllIvarDecls(AllIvarDecls) { in ParseObjCClassInstanceVariables()
1315 P.Actions.ActOnObjCContainerStartDefinition(IDecl); in ParseObjCClassInstanceVariables()
/external/clang/include/clang/AST/
DDeclObjC.h1551 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
1555 ClassInterface(IDecl), NextClassCategory(0), in ObjCContainerDecl()
1567 ObjCInterfaceDecl *IDecl,
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCallEvent.h836 virtual bool canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl,
/external/clang/include/clang/Sema/
DSema.h1608 Decl *ActOnObjCContainerStartDefinition(Decl *IDecl);
2414 ObjCInterfaceDecl *IDecl);
2437 ObjCContainerDecl* IDecl,
2449 ObjCInterfaceDecl *IDecl);
2501 ObjCContainerDecl* IDecl);
2525 ObjCContainerDecl* IDecl,
/external/clang/lib/CodeGen/
DCGObjCGNU.cpp1099 const ObjCInterfaceDecl *IDecl = OPT->getObjectType()->getInterface(); in GetEHType() local
1100 assert(IDecl && "Invalid @catch type."); in GetEHType()
1101 return MakeConstantString(IDecl->getIdentifier()->getName()); in GetEHType()
DCGObjCMac.cpp4008 ObjCInterfaceDecl *IDecl = ObjTy->getInterface(); in EmitTryOrSynchronizedStmt() local
4009 assert(IDecl && "Catch parameter must have Objective-C type!"); in EmitTryOrSynchronizedStmt()
4012 llvm::Value *Class = EmitClassRef(CGF, IDecl); in EmitTryOrSynchronizedStmt()