Home | History | Annotate | Download | only in AST

Lines Matching defs:ID

56 ObjCContainerDecl::getIvarDecl(IdentifierInfo *Id) const {
57 lookup_result R = lookup(Id);
112 if (const ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(this)) {
115 for (const auto *Cat : ID->visible_categories()) {
134 for (const auto *Proto : ID->all_referenced_protocols())
139 ObjCInterfaceDecl *OSC = ID->getSuperClass();
482 ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(IdentifierInfo *ID,
493 if (ObjCIvarDecl *I = ClassDecl->getIvarDecl(ID)) {
499 if (ObjCIvarDecl *I = Ext->getIvarDecl(ID)) {
653 ObjCMethodDecl *ObjCMethodDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
654 return new (C, ID) ObjCMethodDecl(SourceLocation(), SourceLocation(),
670 if (const ObjCInterfaceDecl *ID = getClassInterface())
671 return ID->isDesignatedInitializer(getSelector(), InitMethod);
951 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
952 return ID;
1048 const ObjCInterfaceDecl *ID = IMD->getClassInterface();
1049 if (!ID)
1053 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1057 CollectOverriddenMethods(ID, Method, overridden);
1061 const ObjCInterfaceDecl *ID = CatD->getClassInterface();
1062 if (!ID)
1066 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1070 CollectOverriddenMethods(ID, Method, overridden);
1146 IdentifierInfo *Id,
1151 ObjCInterfaceDecl(C, DC, atLoc, Id, ClassLoc, PrevDecl, isInternal);
1158 unsigned ID) {
1159 ObjCInterfaceDecl *Result = new (C, ID) ObjCInterfaceDecl(C, nullptr,
1169 SourceLocation AtLoc, IdentifierInfo *Id,
1173 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc),
1226 if (ObjCInterfaceDecl *ID =
1228 return ID->getObjCRuntimeNameAsString();
1396 // also allowed assigning a protocol-qualified 'id' type to a LHS object
1397 // when protocol in qualified LHS is in list of protocols in the rhs 'id'
1431 SourceLocation IdLoc, IdentifierInfo *Id,
1451 ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(DC);
1452 if (!ID) {
1454 ID = IM->getClassInterface();
1456 ID = cast<ObjCCategoryDecl>(DC)->getClassInterface();
1458 ID->setIvarList(nullptr);
1461 return new (C, DC) ObjCIvarDecl(DC, StartLoc, IdLoc, Id, T, TInfo, ac, BW,
1465 ObjCIvarDecl *ObjCIvarDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
1466 return new (C, ID) ObjCIvarDecl(nullptr, SourceLocation(), SourceLocation(),
1504 IdentifierInfo *Id, QualType T, Expr *BW) {
1505 return new (C, DC) ObjCAtDefsFieldDecl(DC, StartLoc, IdLoc, Id, T, BW);
1509 unsigned ID) {
1510 return new (C, ID) ObjCAtDefsFieldDecl(nullptr, SourceLocation(),
1522 IdentifierInfo *Id, SourceLocation nameLoc,
1525 : ObjCContainerDecl(ObjCProtocol, DC, Id, nameLoc, atStartLoc),
1533 IdentifierInfo *Id,
1538 new (C, DC) ObjCProtocolDecl(C, DC, Id, nameLoc, atStartLoc, PrevDecl);
1544 unsigned ID) {
1546 new (C, ID) ObjCProtocolDecl(C, nullptr, nullptr, SourceLocation(),
1655 IdentifierInfo *Id,
1660 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id,
1676 unsigned ID) {
1677 return new (C, ID) ObjCCategoryDecl(nullptr, SourceLocation(),
1700 IdentifierInfo *Id,
1707 return new (C, DC) ObjCCategoryImplDecl(DC, Id, ClassInterface, nameLoc,
1712 unsigned ID) {
1713 return new (C, ID) ObjCCategoryImplDecl(nullptr, nullptr, nullptr,
1720 if (const ObjCInterfaceDecl *ID = getClassInterface())
1721 return ID->FindCategoryDeclaration(getIdentifier());
1769 FindPropertyImplDecl(IdentifierInfo *Id) const {
1771 if (PID->getPropertyDecl()->getIdentifier() == Id)
1805 ObjCImplementationDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
1806 return new (C, ID) ObjCImplementationDecl(nullptr, nullptr, nullptr,
1829 const ObjCImplementationDecl &ID) {
1830 OS << ID.getName();
1843 IdentifierInfo *Id,
1845 return new (C, DC) ObjCCompatibleAliasDecl(DC, L, Id, AliasedClass);
1849 ObjCCompatibleAliasDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
1850 return new (C, ID) ObjCCompatibleAliasDecl(nullptr, SourceLocation(),
1862 IdentifierInfo *Id,
1867 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T);
1871 unsigned ID) {
1872 return new (C, ID) ObjCPropertyDecl(nullptr, SourceLocation(), nullptr,
1894 unsigned ID) {
1895 return new (C, ID) ObjCPropertyImplDecl(nullptr, SourceLocation(),