/external/clang/lib/AST/ |
D | DeclObjC.cpp | 37 void ObjCProtocolList::set(ObjCProtocolDecl* const* InList, unsigned Elts, in set() 72 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(this)) { in getMethod() 73 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in getMethod() 146 if (const ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(this)) in HasUserDeclaredSetterMethod() 158 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(DC)) { in findPropertyDecl() 159 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in findPropertyDecl() 188 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(this)) { in FindPropertyDeclaration() 189 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in FindPropertyDeclaration() 202 const ObjCProtocolDecl *PID = cast<ObjCProtocolDecl>(this); in FindPropertyDeclaration() 302 ObjCProtocolDecl *const* ExtList, unsigned ExtNum, in mergeClassExtensionProtocolList() [all …]
|
D | ASTImporter.cpp | 116 bool ImportDefinition(ObjCProtocolDecl *From, ObjCProtocolDecl *To, 154 Decl *VisitObjCProtocolDecl(ObjCProtocolDecl *D); 1804 SmallVector<ObjCProtocolDecl *, 4> Protocols; in VisitObjCObjectType() 1806 ObjCProtocolDecl *Protocol in VisitObjCObjectType() 1807 = dyn_cast_or_null<ObjCProtocolDecl>(Importer.Import(P)); in VisitObjCObjectType() 3366 SmallVector<ObjCProtocolDecl *, 4> Protocols; in VisitObjCCategoryDecl() 3374 ObjCProtocolDecl *ToProto in VisitObjCCategoryDecl() 3375 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto)); in VisitObjCCategoryDecl() 3407 bool ASTNodeImporter::ImportDefinition(ObjCProtocolDecl *From, in ImportDefinition() 3408 ObjCProtocolDecl *To, in ImportDefinition() [all …]
|
D | DeclPrinter.cpp | 75 void VisitObjCProtocolDecl(ObjCProtocolDecl *D); 308 isa<ObjCProtocolDecl>(*D) || in VisitDeclContext() 1014 const ObjCList<ObjCProtocolDecl> &Protocols = OID->getReferencedProtocols(); in VisitObjCInterfaceDecl() 1016 for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), in VisitObjCInterfaceDecl() 1046 void DeclPrinter::VisitObjCProtocolDecl(ObjCProtocolDecl *PID) { in VisitObjCProtocolDecl() 1052 const ObjCList<ObjCProtocolDecl> &Protocols = PID->getReferencedProtocols(); in VisitObjCProtocolDecl() 1055 for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), in VisitObjCProtocolDecl()
|
D | ASTContext.cpp | 1857 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> &Protocols) { in CollectInheritedProtocols() argument 1884 } else if (const ObjCProtocolDecl *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols() 3525 static int CmpProtocolNames(ObjCProtocolDecl *const *LHS, in CmpProtocolNames() 3526 ObjCProtocolDecl *const *RHS) { in CmpProtocolNames() 3530 static bool areSortedAndUniqued(ObjCProtocolDecl * const *Protocols, in areSortedAndUniqued() 3544 static void SortAndUniqueProtocols(ObjCProtocolDecl **Protocols, in SortAndUniqueProtocols() 3546 ObjCProtocolDecl **ProtocolsEnd = Protocols+NumProtocols; in SortAndUniqueProtocols() 3561 ObjCProtocolDecl * const *Protocols, in getObjCObjectType() 3581 SmallVector<ObjCProtocolDecl*, 8> Sorted(Protocols, in getObjCObjectType() 3598 Size += NumProtocols * sizeof(ObjCProtocolDecl *); in getObjCObjectType() [all …]
|
/external/clang/test/Index/ |
D | complete-protocols.m | 18 // CHECK-CC1: ObjCProtocolDecl:{TypedText Protocol1} 19 // CHECK-CC1-NEXT: ObjCProtocolDecl:{TypedText Protocol2} 21 // CHECK-CC2-NOT: ObjCProtocolDecl:{TypedText Protocol1} 22 // CHECK-CC2: ObjCProtocolDecl:{TypedText Protocol2} 24 // CHECK-CC3: ObjCProtocolDecl:{TypedText Protocol0} 25 // CHECK-CC3-NEXT: ObjCProtocolDecl:{TypedText Protocol2}
|
D | c-index-getCursor-test.m | 83 // CHECK: [23:1 - 24:1] ObjCProtocolDecl=Proto:23:11 (Definition) 85 // CHECK: [24:11 - 25:5] ObjCProtocolDecl=Proto:23:11 (Definition) 87 // CHECK: [27:1 - 27:17] ObjCProtocolDecl=SubP:27:11 (Definition) 89 // CHECK: [27:22 - 28:1] ObjCProtocolDecl=SubP:27:11 (Definition) 91 // CHECK: [28:12 - 29:5] ObjCProtocolDecl=SubP:27:11 (Definition)
|
D | file-refs.m | 70 // CHECK-NEXT: ObjCProtocolDecl=Prot1:18:11 (Definition) 71 // CHECK-NEXT: ObjCProtocolDecl=Prot1:18:11 (Definition) =[18:11 - 18:16]
|
D | local-symbols.m | 45 // CHECK: local-symbols.m:20:11: ObjCProtocolDecl=Prot8380046:20:11 (Definition) Extent=[20:1 - 21:…
|
D | annotate-tokens.m | 446 // CHECK: Punctuation: "@" [85:1 - 85:2] ObjCProtocolDecl=Proto:85:11 (Definition) 447 // CHECK: Keyword: "protocol" [85:2 - 85:10] ObjCProtocolDecl=Proto:85:11 (Definition) 448 // CHECK: Identifier: "Proto" [85:11 - 85:16] ObjCProtocolDecl=Proto:85:11 (Definition) 449 // CHECK: Punctuation: "@" [85:17 - 85:18] ObjCProtocolDecl=Proto:85:11 (Definition) 450 // CHECK: Keyword: "end" [85:18 - 85:21] ObjCProtocolDecl=Proto:85:11 (Definition)
|
/external/clang/include/clang/AST/ |
D | DeclObjC.h | 29 class ObjCProtocolDecl; variable 76 class ObjCProtocolList : public ObjCList<ObjCProtocolDecl> { 79 using ObjCList<ObjCProtocolDecl>::set; 82 ObjCProtocolList() : ObjCList<ObjCProtocolDecl>(), Locations(nullptr) { } in ObjCProtocolList() 88 void set(ObjCProtocolDecl* const* InList, unsigned Elts, 599 typedef llvm::DenseMap<const ObjCProtocolDecl *, ObjCPropertyDecl*> 686 ObjCList<ObjCProtocolDecl> AllReferencedProtocols; 882 typedef ObjCList<ObjCProtocolDecl>::iterator all_protocol_iterator; 949 void setProtocolList(ObjCProtocolDecl *const* List, unsigned Num, in setProtocolList() 956 void mergeClassExtensionProtocolList(ObjCProtocolDecl *const* List, [all …]
|
D | Type.h | 86 class ObjCProtocolDecl; 4361 ObjCProtocolDecl * const *getProtocolStorage() const { 4365 ObjCProtocolDecl **getProtocolStorage(); 4369 ObjCProtocolDecl * const *Protocols, unsigned NumProtocols); 4409 typedef ObjCProtocolDecl * const *qual_iterator; 4423 ObjCProtocolDecl *getProtocol(unsigned I) const { 4448 ObjCProtocolDecl * const *Protocols, 4456 ObjCProtocolDecl *const *protocols, 4460 inline ObjCProtocolDecl **ObjCObjectType::getProtocolStorage() { 4461 return reinterpret_cast<ObjCProtocolDecl**>( [all …]
|
D | ExprObjC.h | 439 ObjCProtocolDecl *TheProtocol; 442 ObjCProtocolExpr(QualType T, ObjCProtocolDecl *protocol, 450 ObjCProtocolDecl *getProtocol() const { return TheProtocol; } 451 void setProtocol(ObjCProtocolDecl *P) { TheProtocol = P; }
|
/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod() 594 IDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartClassInterface() 674 const ObjCList<ObjCProtocolDecl> &PList) { in CheckForwardProtocolDeclarationForCircularDependency() 677 for (ObjCList<ObjCProtocolDecl>::iterator I = PList.begin(), in CheckForwardProtocolDeclarationForCircularDependency() 679 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() 710 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface() 712 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() 713 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface() 722 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 730 ObjCList<ObjCProtocolDecl> PList; in ActOnStartProtocolInterface() [all …]
|
D | SemaObjCProperty.cpp | 119 ObjCProtocolDecl *Proto, in CheckPropertyAgainstProtocol() 120 llvm::SmallPtrSetImpl<ObjCProtocolDecl *> &Known) { in CheckPropertyAgainstProtocol() 195 isa<ObjCProtocolDecl>(ClassDecl))); in ActOnProperty() 200 llvm::SmallPtrSet<ObjCProtocolDecl *, 16> KnownProtos; in ActOnProperty() 235 ObjCProtocolDecl *Proto = cast<ObjCProtocolDecl>(ClassDecl); in ActOnProperty() 548 if (ObjCProtocolDecl* PNSCopying = in CreatePropertyDecl() 755 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols() 761 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols() 889 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl() 1448 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties() [all …]
|
/external/clang/tools/libclang/ |
D | CXCursor.h | 37 class ObjCProtocolDecl; variable 72 CXCursor MakeCursorObjCProtocolRef(const ObjCProtocolDecl *Proto, 78 std::pair<const ObjCProtocolDecl *, SourceLocation>
|
D | IndexingContext.h | 162 ObjCProtocolDeclInfo(const ObjCProtocolDecl *D) in ObjCProtocolDeclInfo() 415 bool handleObjCProtocol(const ObjCProtocolDecl *D);
|
/external/clang/lib/CodeGen/ |
D | CGObjCRuntime.h | 49 class ObjCProtocolDecl; variable 183 const ObjCProtocolDecl *OPD) = 0; 187 virtual void GenerateProtocol(const ObjCProtocolDecl *OPD) = 0;
|
D | CGObjCMac.cpp | 997 const ObjCProtocolDecl *Proto, 1003 llvm::Constant *GetProtocolRef(const ObjCProtocolDecl *PD); 1047 void GenerateProtocol(const ObjCProtocolDecl *PD) override; 1052 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD)=0; 1058 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD)=0; 1149 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override; 1155 llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) override; 1162 EmitProtocolExtension(const ObjCProtocolDecl *PD, 1170 ObjCProtocolDecl::protocol_iterator begin, 1171 ObjCProtocolDecl::protocol_iterator end); [all …]
|
/external/clang/include/clang/Edit/ |
D | Rewriters.h | 18 class ObjCProtocolDecl; variable
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 102 llvm::SmallPtrSet<ObjCProtocolDecl *, 32> ObjCProtocolDecls; 612 ObjCProtocolDecl *Protocol) { in ClassImplementsAllMethodsAndProperties() 617 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() 645 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() 674 llvm::SmallVectorImpl<ObjCProtocolDecl*> &ConformingProtocols, in rewriteToObjCInterfaceDecl() 676 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl() 859 llvm::SmallPtrSet<ObjCProtocolDecl *, 8> ExplicitProtocols; in migrateProtocolConformance() 861 llvm::SmallVector<ObjCProtocolDecl *, 8> PotentialImplicitProtocols; in migrateProtocolConformance() 863 for (ObjCProtocolDecl *ProtDecl : ObjCProtocolDecls) in migrateProtocolConformance() 873 llvm::SmallVector<ObjCProtocolDecl*, 8> ConformingProtocols; in migrateProtocolConformance() [all …]
|
/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 133 if (const ObjCProtocolDecl *Def in getDefinitiveDeclContext() 134 = cast<ObjCProtocolDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
|
/external/lldb/include/lldb/Core/ |
D | ClangForward.h | 90 class ObjCProtocolDecl; variable
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 113 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> ObjCSynthesizedProtocols; 119 llvm::SmallPtrSet<ObjCProtocolDecl *, 32> ProtocolExprDecls; 179 if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(*I)) { in HandleTopLevelDecl() 278 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl); 328 virtual void RewriteObjCProtocolListMetaData(const ObjCList<ObjCProtocolDecl> &Prots, 334 virtual void RewriteObjCProtocolMetaData(ObjCProtocolDecl *Protocol, 526 void RewriteObjCProtocolMetaData(ObjCProtocolDecl *Protocol, 530 const ObjCList<ObjCProtocolDecl> &Prots, 671 } else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) { in HandleTopLevelSingleDecl() 698 if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>((*DI))) { in HandleTopLevelSingleDecl() [all …]
|
D | RewriteModernObjC.cpp | 114 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> ObjCSynthesizedProtocols; 127 llvm::SmallPtrSet<ObjCProtocolDecl *, 32> ProtocolExprDecls; 203 if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(*I)) { in HandleTopLevelDecl() 332 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl); 449 void RewriteObjCProtocolMetaData(ObjCProtocolDecl *Protocol, 452 const ObjCList<ObjCProtocolDecl> &Prots, 742 } else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) { in HandleTopLevelSingleDecl() 779 if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>((*DI))) { in HandleTopLevelSingleDecl() 784 if (isa<ObjCProtocolDecl>(*DI) && in HandleTopLevelSingleDecl() 785 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() && in HandleTopLevelSingleDecl() [all …]
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 328 if (const ObjCProtocolDecl *pd = dyn_cast<ObjCProtocolDecl>(container)) { in VisitObjCMethodDecl() 393 GenObjCProtocol(cast<ObjCProtocolDecl>(D)->getName()); in VisitObjCContainerDecl()
|