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)
/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()
159 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(DC)) { in findPropertyDecl()
160 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in findPropertyDecl()
217 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(this)) { in FindPropertyDeclaration()
218 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in FindPropertyDeclaration()
241 const ObjCProtocolDecl *PID = cast<ObjCProtocolDecl>(this); in FindPropertyDeclaration()
411 ObjCProtocolDecl *const* ExtList, unsigned ExtNum, in mergeClassExtensionProtocolList()
[all …]
DDeclPrinter.cpp84 void VisitObjCProtocolDecl(ObjCProtocolDecl *D);
348 isa<ObjCProtocolDecl>(*D) || in VisitDeclContext()
1150 const ObjCList<ObjCProtocolDecl> &Protocols = OID->getReferencedProtocols(); in VisitObjCInterfaceDecl()
1152 for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), in VisitObjCInterfaceDecl()
1182 void DeclPrinter::VisitObjCProtocolDecl(ObjCProtocolDecl *PID) { in VisitObjCProtocolDecl()
1188 const ObjCList<ObjCProtocolDecl> &Protocols = PID->getReferencedProtocols(); in VisitObjCProtocolDecl()
1191 for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), in VisitObjCProtocolDecl()
DASTImporter.cpp121 bool ImportDefinition(ObjCProtocolDecl *From, ObjCProtocolDecl *To,
162 Decl *VisitObjCProtocolDecl(ObjCProtocolDecl *D);
1972 SmallVector<ObjCProtocolDecl *, 4> Protocols; in VisitObjCObjectType()
1974 ObjCProtocolDecl *Protocol in VisitObjCObjectType()
1975 = dyn_cast_or_null<ObjCProtocolDecl>(Importer.Import(P)); in VisitObjCObjectType()
3728 SmallVector<ObjCProtocolDecl *, 4> Protocols; in VisitObjCCategoryDecl()
3736 ObjCProtocolDecl *ToProto in VisitObjCCategoryDecl()
3737 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto)); in VisitObjCCategoryDecl()
3769 bool ASTNodeImporter::ImportDefinition(ObjCProtocolDecl *From, in ImportDefinition()
3770 ObjCProtocolDecl *To, in ImportDefinition()
[all …]
DASTContext.cpp1972 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> &Protocols) { in CollectInheritedProtocols() argument
1993 } else if (const ObjCProtocolDecl *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
1996 const_cast<ObjCProtocolDecl *>(OP->getCanonicalDecl())).second) in CollectInheritedProtocols()
3681 static int CmpProtocolNames(ObjCProtocolDecl *const *LHS, in CmpProtocolNames()
3682 ObjCProtocolDecl *const *RHS) { in CmpProtocolNames()
3686 static bool areSortedAndUniqued(ArrayRef<ObjCProtocolDecl *> Protocols) { in areSortedAndUniqued()
3700 SortAndUniqueProtocols(SmallVectorImpl<ObjCProtocolDecl *> &Protocols) { in SortAndUniqueProtocols()
3705 for (ObjCProtocolDecl *&P : Protocols) in SortAndUniqueProtocols()
3714 ObjCProtocolDecl * const *Protocols, in getObjCObjectType()
3724 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,
1025 typedef llvm::DenseMap<const ObjCProtocolDecl *, ObjCPropertyDecl*>
1112 ObjCList<ObjCProtocolDecl> AllReferencedProtocols;
1330 typedef ObjCList<ObjCProtocolDecl>::iterator all_protocol_iterator;
1397 void setProtocolList(ObjCProtocolDecl *const* List, unsigned Num, in setProtocolList()
1404 void mergeClassExtensionProtocolList(ObjCProtocolDecl *const* List,
[all …]
DType.h89 class ObjCProtocolDecl;
4750 ObjCProtocolDecl * const *getProtocolStorage() const {
4759 ObjCProtocolDecl **getProtocolStorage();
4764 ArrayRef<ObjCProtocolDecl *> protocols,
4836 typedef ObjCProtocolDecl * const *qual_iterator;
4850 ObjCProtocolDecl *getProtocol(unsigned I) const {
4856 ArrayRef<ObjCProtocolDecl *> getProtocols() const {
4857 return ArrayRef<ObjCProtocolDecl *>(qual_begin(), getNumProtocols());
4905 ArrayRef<ObjCProtocolDecl *> protocols,
4914 ArrayRef<ObjCProtocolDecl *> protocols,
[all …]
/external/clang/lib/Sema/
DSemaDeclObjC.cpp75 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
453 ObjCProtocolDecl *const *ProtoRefs, in diagnoseUseOfProtocols()
1016 diagnoseUseOfProtocols(*this, IDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartClassInterface()
1018 IDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartClassInterface()
1098 const ObjCList<ObjCProtocolDecl> &PList) { in CheckForwardProtocolDeclarationForCircularDependency()
1101 for (ObjCList<ObjCProtocolDecl>::iterator I = PList.begin(), in CheckForwardProtocolDeclarationForCircularDependency()
1103 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency()
1134 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface()
1136 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface()
1137 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()
596 if (ObjCProtocolDecl* PNSCopying = in CreatePropertyDecl()
818 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols()
824 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols()
990 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl()
1575 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>
DCXIndexDataConsumer.cpp74 bool VisitObjCProtocolDecl(const ObjCProtocolDecl *D) { in VisitObjCProtocolDecl()
174 if (auto *ObjCPD = dyn_cast_or_null<ObjCProtocolDecl>(ASTNode.OrigD)) { in handleDeclOccurence()
242 ObjCProtocolDecl *PD = *I; in ObjCProtocolListInfo()
706 bool CXIndexDataConsumer::handleObjCProtocol(const ObjCProtocolDecl *D) { in handleObjCProtocol()
1203 if (const ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) in getRefCursor()
DCXIndexDataConsumer.h163 ObjCProtocolDeclInfo(const ObjCProtocolDecl *D) in ObjCProtocolDeclInfo()
417 bool handleObjCProtocol(const ObjCProtocolDecl *D);
/external/clang/lib/CodeGen/
DCGObjCRuntime.h49 class ObjCProtocolDecl; variable
192 const ObjCProtocolDecl *OPD) = 0;
196 virtual void GenerateProtocol(const ObjCProtocolDecl *OPD) = 0;
DCGObjCMac.cpp987 const ObjCProtocolDecl *Proto,
994 llvm::Constant *GetProtocolRef(const ObjCProtocolDecl *PD);
1051 void GenerateProtocol(const ObjCProtocolDecl *PD) override;
1056 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD)=0;
1062 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD)=0;
1154 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override;
1160 llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) override;
1167 EmitProtocolExtension(const ObjCProtocolDecl *PD,
1175 ObjCProtocolDecl::protocol_iterator begin,
1176 ObjCProtocolDecl::protocol_iterator end);
[all …]
/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()
636 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties()
663 llvm::SmallVectorImpl<ObjCProtocolDecl*> &ConformingProtocols, in rewriteToObjCInterfaceDecl()
665 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl()
848 llvm::SmallPtrSet<ObjCProtocolDecl *, 8> ExplicitProtocols; in migrateProtocolConformance()
850 llvm::SmallVector<ObjCProtocolDecl *, 8> PotentialImplicitProtocols; in migrateProtocolConformance()
852 for (ObjCProtocolDecl *ProtDecl : ObjCProtocolDecls) in migrateProtocolConformance()
862 llvm::SmallVector<ObjCProtocolDecl*, 8> ConformingProtocols; in migrateProtocolConformance()
[all …]
/external/clang/include/clang/Edit/
DRewriters.h18 class ObjCProtocolDecl; variable
/external/clang/lib/Serialization/
DASTCommon.cpp219 if (const ObjCProtocolDecl *Def in getDefinitiveDeclContext()
220 = cast<ObjCProtocolDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp112 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> ObjCSynthesizedProtocols;
118 llvm::SmallPtrSet<ObjCProtocolDecl *, 32> ProtocolExprDecls;
179 if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(*I)) { in HandleTopLevelDecl()
279 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl);
329 virtual void RewriteObjCProtocolListMetaData(const ObjCList<ObjCProtocolDecl> &Prots,
335 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()
331 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl);
447 void RewriteObjCProtocolMetaData(ObjCProtocolDecl *Protocol,
736 } else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) { in HandleTopLevelSingleDecl()
769 if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>((*DI))) { in HandleTopLevelSingleDecl()
774 if (isa<ObjCProtocolDecl>(*DI) && in HandleTopLevelSingleDecl()
775 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() && in HandleTopLevelSingleDecl()
1152 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl()
[all …]
/external/clang/lib/Index/
DIndexDecl.cpp211 ObjCProtocolDecl *PD = *I; in handleReferencedProtocols()
236 bool VisitObjCProtocolDecl(const ObjCProtocolDecl *D) { in VisitObjCProtocolDecl()
DUSRGeneration.cpp337 if (const ObjCProtocolDecl *pd = dyn_cast<ObjCProtocolDecl>(container)) { in VisitObjCMethodDecl()
402 GenObjCProtocol(cast<ObjCProtocolDecl>(D)->getName()); in VisitObjCContainerDecl()

123