Home
last modified time | relevance | path

Searched refs:ObjCProtocolDecl (Results 1 – 25 of 65) sorted by relevance

123

/external/clang/test/Index/
Dcomplete-protocols.m18 // 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}
Dc-index-getCursor-test.m83 // 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)
Dfile-refs.m70 // CHECK-NEXT: ObjCProtocolDecl=Prot1:18:11 (Definition)
71 // CHECK-NEXT: ObjCProtocolDecl=Prot1:18:11 (Definition) =[18:11 - 18:16]
Dlocal-symbols.m45 // CHECK: local-symbols.m:20:11: ObjCProtocolDecl=Prot8380046:20:11 (Definition) Extent=[20:1 - 21:…
Dannotate-tokens.m447 // CHECK: Punctuation: "@" [85:1 - 85:2] ObjCProtocolDecl=Proto:85:11 (Definition)
448 // CHECK: Keyword: "protocol" [85:2 - 85:10] ObjCProtocolDecl=Proto:85:11 (Definition)
449 // CHECK: Identifier: "Proto" [85:11 - 85:16] ObjCProtocolDecl=Proto:85:11 (Definition)
450 // CHECK: Punctuation: "@" [85:17 - 85:18] ObjCProtocolDecl=Proto:85:11 (Definition)
451 // CHECK: Keyword: "end" [85:18 - 85:21] ObjCProtocolDecl=Proto:85:11 (Definition)
Dcomplete-parameterized-classes.m78 // CHECK-CC8: ObjCProtocolDecl:{TypedText NSObject}
/external/clang/lib/AST/
DDeclObjC.cpp37 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()
197 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(this)) { in FindPropertyDeclaration()
198 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in FindPropertyDeclaration()
220 const ObjCProtocolDecl *PID = cast<ObjCProtocolDecl>(this); in FindPropertyDeclaration()
383 ObjCProtocolDecl *const* ExtList, unsigned ExtNum, in mergeClassExtensionProtocolList()
[all …]
DASTImporter.cpp116 bool ImportDefinition(ObjCProtocolDecl *From, ObjCProtocolDecl *To,
155 Decl *VisitObjCProtocolDecl(ObjCProtocolDecl *D);
1856 SmallVector<ObjCProtocolDecl *, 4> Protocols; in VisitObjCObjectType()
1858 ObjCProtocolDecl *Protocol in VisitObjCObjectType()
1859 = dyn_cast_or_null<ObjCProtocolDecl>(Importer.Import(P)); in VisitObjCObjectType()
3504 SmallVector<ObjCProtocolDecl *, 4> Protocols; in VisitObjCCategoryDecl()
3512 ObjCProtocolDecl *ToProto in VisitObjCCategoryDecl()
3513 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto)); in VisitObjCCategoryDecl()
3545 bool ASTNodeImporter::ImportDefinition(ObjCProtocolDecl *From, in ImportDefinition()
3546 ObjCProtocolDecl *To, in ImportDefinition()
[all …]
DDeclPrinter.cpp84 void VisitObjCProtocolDecl(ObjCProtocolDecl *D);
346 isa<ObjCProtocolDecl>(*D) || in VisitDeclContext()
1132 const ObjCList<ObjCProtocolDecl> &Protocols = OID->getReferencedProtocols(); in VisitObjCInterfaceDecl()
1134 for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), in VisitObjCInterfaceDecl()
1164 void DeclPrinter::VisitObjCProtocolDecl(ObjCProtocolDecl *PID) { in VisitObjCProtocolDecl()
1170 const ObjCList<ObjCProtocolDecl> &Protocols = PID->getReferencedProtocols(); in VisitObjCProtocolDecl()
1173 for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), in VisitObjCProtocolDecl()
DASTContext.cpp1974 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> &Protocols) { in CollectInheritedProtocols() argument
1995 } else if (const ObjCProtocolDecl *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
1998 const_cast<ObjCProtocolDecl *>(OP->getCanonicalDecl())).second) in CollectInheritedProtocols()
3647 static int CmpProtocolNames(ObjCProtocolDecl *const *LHS, in CmpProtocolNames()
3648 ObjCProtocolDecl *const *RHS) { in CmpProtocolNames()
3652 static bool areSortedAndUniqued(ObjCProtocolDecl * const *Protocols, in areSortedAndUniqued()
3667 SortAndUniqueProtocols(SmallVectorImpl<ObjCProtocolDecl *> &Protocols) { in SortAndUniqueProtocols()
3672 for (ObjCProtocolDecl *&P : Protocols) in SortAndUniqueProtocols()
3681 ObjCProtocolDecl * const *Protocols, in getObjCObjectType()
3691 ArrayRef<ObjCProtocolDecl *> protocols, in getObjCObjectType()
[all …]
/external/clang/include/clang/AST/
DDeclObjC.h29 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,
785 typedef llvm::DenseMap<const ObjCProtocolDecl *, ObjCPropertyDecl*>
872 ObjCList<ObjCProtocolDecl> AllReferencedProtocols;
1090 typedef ObjCList<ObjCProtocolDecl>::iterator all_protocol_iterator;
1157 void setProtocolList(ObjCProtocolDecl *const* List, unsigned Num, in setProtocolList()
1164 void mergeClassExtensionProtocolList(ObjCProtocolDecl *const* List,
[all …]
DType.h89 class ObjCProtocolDecl;
4576 ObjCProtocolDecl * const *getProtocolStorage() const {
4585 ObjCProtocolDecl **getProtocolStorage();
4590 ArrayRef<ObjCProtocolDecl *> protocols,
4662 typedef ObjCProtocolDecl * const *qual_iterator;
4676 ObjCProtocolDecl *getProtocol(unsigned I) const {
4682 ArrayRef<ObjCProtocolDecl *> getProtocols() const {
4683 return ArrayRef<ObjCProtocolDecl *>(qual_begin(), getNumProtocols());
4731 ArrayRef<ObjCProtocolDecl *> protocols,
4740 ArrayRef<ObjCProtocolDecl *> protocols,
[all …]
/external/clang/lib/Sema/
DSemaDeclObjC.cpp76 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
454 ObjCProtocolDecl *const *ProtoRefs, in diagnoseUseOfProtocols()
1017 diagnoseUseOfProtocols(*this, IDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartClassInterface()
1019 IDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartClassInterface()
1099 const ObjCList<ObjCProtocolDecl> &PList) { in CheckForwardProtocolDeclarationForCircularDependency()
1102 for (ObjCList<ObjCProtocolDecl>::iterator I = PList.begin(), in CheckForwardProtocolDeclarationForCircularDependency()
1104 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency()
1135 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface()
1137 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface()
1138 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
[all …]
DSemaObjCProperty.cpp111 ObjCProtocolDecl *Proto, in CheckPropertyAgainstProtocol()
112 llvm::SmallPtrSetImpl<ObjCProtocolDecl *> &Known) { in CheckPropertyAgainstProtocol()
225 isa<ObjCProtocolDecl>(ClassDecl))); in ActOnProperty()
231 llvm::SmallPtrSet<ObjCProtocolDecl *, 16> KnownProtos; in ActOnProperty()
270 ObjCProtocolDecl *Proto = cast<ObjCProtocolDecl>(ClassDecl); in ActOnProperty()
592 if (ObjCProtocolDecl* PNSCopying = in CreatePropertyDecl()
809 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols()
815 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols()
975 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl()
1546 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties()
[all …]
/external/clang/tools/libclang/
DCXCursor.h37 class ObjCProtocolDecl; variable
72 CXCursor MakeCursorObjCProtocolRef(const ObjCProtocolDecl *Proto,
78 std::pair<const ObjCProtocolDecl *, SourceLocation>
DIndexingContext.h162 ObjCProtocolDeclInfo(const ObjCProtocolDecl *D) in ObjCProtocolDeclInfo()
415 bool handleObjCProtocol(const ObjCProtocolDecl *D);
DIndexingContext.cpp30 ObjCProtocolDecl *PD = *I; in ObjCProtocolListInfo()
483 bool IndexingContext::handleObjCProtocol(const ObjCProtocolDecl *D) { in handleObjCProtocol()
1133 if (const ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) in getRefCursor()
/external/clang/lib/CodeGen/
DCGObjCRuntime.h49 class ObjCProtocolDecl; variable
192 const ObjCProtocolDecl *OPD) = 0;
196 virtual void GenerateProtocol(const ObjCProtocolDecl *OPD) = 0;
DCGObjCMac.cpp983 const ObjCProtocolDecl *Proto,
989 llvm::Constant *GetProtocolRef(const ObjCProtocolDecl *PD);
1040 void GenerateProtocol(const ObjCProtocolDecl *PD) override;
1045 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD)=0;
1051 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD)=0;
1144 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override;
1150 llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) override;
1157 EmitProtocolExtension(const ObjCProtocolDecl *PD,
1165 ObjCProtocolDecl::protocol_iterator begin,
1166 ObjCProtocolDecl::protocol_iterator end);
[all …]
/external/clang/include/clang/Edit/
DRewriters.h18 class ObjCProtocolDecl; variable
/external/clang/lib/ARCMigrate/
DObjCMT.cpp102 llvm::SmallPtrSet<ObjCProtocolDecl *, 32> ObjCProtocolDecls;
602 ObjCProtocolDecl *Protocol) { in ClassImplementsAllMethodsAndProperties()
607 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties()
635 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties()
662 llvm::SmallVectorImpl<ObjCProtocolDecl*> &ConformingProtocols, in rewriteToObjCInterfaceDecl()
664 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl()
847 llvm::SmallPtrSet<ObjCProtocolDecl *, 8> ExplicitProtocols; in migrateProtocolConformance()
849 llvm::SmallVector<ObjCProtocolDecl *, 8> PotentialImplicitProtocols; in migrateProtocolConformance()
851 for (ObjCProtocolDecl *ProtDecl : ObjCProtocolDecls) in migrateProtocolConformance()
861 llvm::SmallVector<ObjCProtocolDecl*, 8> ConformingProtocols; in migrateProtocolConformance()
[all …]
/external/clang/lib/Serialization/
DASTCommon.cpp247 if (const ObjCProtocolDecl *Def in getDefinitiveDeclContext()
248 = cast<ObjCProtocolDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp113 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 …]
DRewriteModernObjC.cpp114 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/
DUSRGeneration.cpp326 if (const ObjCProtocolDecl *pd = dyn_cast<ObjCProtocolDecl>(container)) { in VisitObjCMethodDecl()
391 GenObjCProtocol(cast<ObjCProtocolDecl>(D)->getName()); in VisitObjCContainerDecl()

123