Home
last modified time | relevance | path

Searched refs:OID (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGObjCRuntime.h81 const ObjCInterfaceDecl *OID,
84 const ObjCImplementationDecl *OID,
88 const ObjCInterfaceDecl *OID,
158 virtual void GenerateClass(const ObjCImplementationDecl *OID) = 0;
188 const ObjCInterfaceDecl *OID,
273 const ObjCInterfaceDecl *OID) = 0;
H A DCGObjCRuntime.cpp31 const ObjCInterfaceDecl *OID, in ComputeIvarBaseOffset() argument
33 return CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar) / in ComputeIvarBaseOffset()
38 const ObjCImplementationDecl *OID, in ComputeIvarBaseOffset() argument
40 return CGM.getContext().lookupFieldBitOffset(OID->getClassInterface(), OID, in ComputeIvarBaseOffset()
54 const ObjCInterfaceDecl *OID, in EmitValueForIvarAtOffset() argument
60 QualType InterfaceTy{OID->getTypeForDecl(), 0}; in EmitValueForIvarAtOffset()
90 CGF.CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar); in EmitValueForIvarAtOffset()
H A DCGObjCGNU.cpp1239 const ObjCInterfaceDecl *OID = nullptr; in GetClassVar() local
1250 OID = OIDDef; in GetClassVar()
1253 if (OID->hasAttr<DLLImportAttr>()) in GetClassVar()
1739 if (OID->classmeth_begin() == OID->classmeth_end()) in GenerateClass()
1744 OID->classmeth_end()); in GenerateClass()
1899 OID->instmeth_end()); in GenerateClass()
2318 GetClassNamed(CGF, OID->getNameAsString(), OID->isWeakImported()); in GetClass()
2320 CGM.setGVProperties(ClassSymbol, OID); in GetClass()
3598 OID->instmeth_end()); in GenerateClass()
3602 OID->classmeth_end()); in GenerateClass()
[all …]
H A DCGObjCMac.cpp1548 void GetClassSizeInfo(const ObjCImplementationDecl *OID,
1839 if (OID->hasAttr<ObjCExceptionAttr>()) in hasObjCExceptionAttribute()
1841 if (const ObjCInterfaceDecl *Super = OID->getSuperClass()) in hasObjCExceptionAttribute()
3261 for (const auto *P : OID->all_referenced_protocols()) in EmitPropertyList()
3775 const ObjCInterfaceDecl *OID = ID->getClassInterface(); in EmitIvarList() local
4047 const ObjCInterfaceDecl *OID = cast<ObjCInterfaceDecl>(CD); in GenerateDirectMethodPrologue() local
4048 assert(OID && in GenerateDirectMethodPrologue()
4070 ReceiverCanBeNull = isWeakLinkedClass(OID); in GenerateDirectMethodPrologue()
6369 const ObjCInterfaceDecl *OID = ID->getClassInterface(); in BuildClassRoTInitializer() local
6453 CGM.getContext().getASTObjCImplementationLayout(OID); in GetClassSizeInfo()
[all …]
H A DCGObjC.cpp440 const ObjCInterfaceDecl *OID, const ObjCMethodDecl *Method, in GeneratePossiblySpecializedMessageSend() argument
447 return GenerateMessageSend(CGF, Return, ResultType, Sel, Receiver, Args, OID, in GeneratePossiblySpecializedMessageSend()
609 ObjCInterfaceDecl *OID = nullptr; in EmitObjCMessageExpr() local
628 OID = ReceiverType->castAs<ObjCObjectType>()->getInterface(); in EmitObjCMessageExpr()
629 assert(OID && "Invalid Objective-C class message send"); in EmitObjCMessageExpr()
630 Receiver = Runtime.GetClass(*this, OID); in EmitObjCMessageExpr()
698 *this, Return, ResultType, E->getSelector(), Receiver, Args, OID, in EmitObjCMessageExpr()
H A DCGDebugInfo.cpp267 if (const auto *OID = dyn_cast<ObjCImplementationDecl>(DC)) { in getObjCMethodName() local
268 OS << OID->getName(); in getObjCMethodName()
269 } else if (const auto *OID = dyn_cast<ObjCInterfaceDecl>(DC)) { in getObjCMethodName() local
270 OS << OID->getName(); in getObjCMethodName()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclPrinter.cpp1328 std::string I = OID->getNameAsString(); in VisitObjCImplementationDecl()
1337 if (OID->ivar_size() > 0) { in VisitObjCImplementationDecl()
1341 for (const auto *I : OID->ivars()) { in VisitObjCImplementationDecl()
1348 else if (SID || (OID->decls_begin() != OID->decls_end())) { in VisitObjCImplementationDecl()
1352 VisitDeclContext(OID, false); in VisitObjCImplementationDecl()
1359 std::string I = OID->getNameAsString(); in VisitObjCInterfaceDecl()
1362 if (!OID->isThisDeclarationADefinition()) { in VisitObjCInterfaceDecl()
1391 if (OID->ivar_size() > 0) { in VisitObjCInterfaceDecl()
1395 for (const auto *I : OID->ivars()) { in VisitObjCInterfaceDecl()
1403 else if (SID || (OID->decls_begin() != OID->decls_end())) { in VisitObjCInterfaceDecl()
[all …]
H A DMangle.cpp451 if (const auto *OID = dyn_cast<ObjCInterfaceDecl>(OCD)) in getAllManglings() local
452 ClassName = OID->getObjCRuntimeNameAsString(); in getAllManglings()
453 else if (const auto *OID = dyn_cast<ObjCImplementationDecl>(OCD)) in getAllManglings() local
454 ClassName = OID->getObjCRuntimeNameAsString(); in getAllManglings()
H A DDeclObjC.cpp285 const auto *OID = cast<ObjCInterfaceDecl>(this); in FindPropertyDeclaration() local
287 for (const auto *Cat : OID->visible_categories()) { in FindPropertyDeclaration()
295 for (const auto *I : OID->all_referenced_protocols()) in FindPropertyDeclaration()
301 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass()) in FindPropertyDeclaration()
1111 const ObjCInterfaceDecl *OID, in getSelfType() argument
1120 if (OID) { in getSelfType()
1121 selfTy = Context.getObjCInterfaceType(OID); in getSelfType()
1156 const ObjCInterfaceDecl *OID) { in createImplicitParams() argument
1159 getSelfType(Context, OID, selfIsPseudoStrong, selfIsConsumed); in createImplicitParams()
H A DDeclBase.cpp1266 if (auto *OID = dyn_cast<ObjCInterfaceDecl>(this)) in getPrimaryContext() local
1267 if (auto *Def = OID->getDefinition()) in getPrimaryContext()
H A DASTContext.cpp7713 const auto *OID = cast<ObjCImplementationDecl>(Container); in getObjCPropertyImplDeclForPropertyDecl() local
7714 for (auto *PID : OID->property_impls()) in getObjCPropertyImplDeclForPropertyDecl()
7805 const ObjCIvarDecl *OID = SynthesizePID->getPropertyIvarDecl(); in getObjCEncodingForPropertyDecl() local
7807 S += OID->getNameAsString(); in getObjCEncodingForPropertyDecl()
H A DRecordLayoutBuilder.cpp3423 uint64_t ASTContext::lookupFieldBitOffset(const ObjCInterfaceDecl *OID, in lookupFieldBitOffset() argument
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
H A Dmove_convert.runtime.pass.cpp31 template <int OID>
32 GenericConvertingDeleter(GenericConvertingDeleter<OID>) {} in GenericConvertingDeleter()
H A Dmove_convert.pass.cpp31 template <int OID>
32 GenericConvertingDeleter(GenericConvertingDeleter<OID>) {} in GenericConvertingDeleter()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
H A Dmove_convert.pass.cpp32 template <int OID>
33 GenericConvertingDeleter(GenericConvertingDeleter<OID>) {} in GenericConvertingDeleter()
35 template <int OID>
36 GenericConvertingDeleter& operator=(GenericConvertingDeleter<OID> const&) { in operator =()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp373 if (const auto *OID = dyn_cast<ObjCImplementationDecl>(DC)) { in getFunctionName() local
374 OS << OID->getName(); in getFunctionName()
375 } else if (const auto *OID = dyn_cast<ObjCInterfaceDecl>(DC)) { in getFunctionName() local
376 OS << OID->getName(); in getFunctionName()
H A DBodyFarm.cpp894 const ObjCInterfaceDecl *OID = D->getClassInterface(); in getBody() local
895 if (dyn_cast<ObjCInterfaceDecl>(D->getParent()) != OID) in getBody()
896 for (auto *Ext : OID->known_extensions()) { in getBody()
/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp144 const ObjCInterfaceDecl *OID = ObjTy->getInterface(); in maybeAdjustInterfaceForSubscriptingCheck() local
148 if (OID->getName() == "NSMapTable" || in maybeAdjustInterfaceForSubscriptingCheck()
149 OID->getName() == "NSLocale") in maybeAdjustInterfaceForSubscriptingCheck()
150 return OID; in maybeAdjustInterfaceForSubscriptingCheck()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp757 static std::string getIvarAccessString(ObjCIvarDecl *OID) { in getIvarAccessString() argument
763 S += OID->getName(); in getIvarAccessString()
786 ObjCIvarDecl *OID = PID->getPropertyIvarDecl(); in RewritePropertyImplDecl() local
788 if (!OID) in RewritePropertyImplDecl()
804 RewriteObjCMethodDecl(OID->getContainingInterface(), in RewritePropertyImplDecl()
840 RewriteIvarOffsetComputation(OID, Getr); in RewritePropertyImplDecl()
844 Getr += "return " + getIvarAccessString(OID); in RewritePropertyImplDecl()
864 RewriteObjCMethodDecl(OID->getContainingInterface(), in RewritePropertyImplDecl()
871 RewriteIvarOffsetComputation(OID, Setr); in RewritePropertyImplDecl()
885 Setr += getIvarAccessString(OID) + " = "; in RewritePropertyImplDecl()
[all …]
H A DRewriteModernObjC.cpp941 ObjCIvarDecl *OID = PID->getPropertyIvarDecl(); in RewritePropertyImplDecl() local
957 RewriteObjCMethodDecl(OID->getContainingInterface(), in RewritePropertyImplDecl()
993 RewriteIvarOffsetComputation(OID, Getr); in RewritePropertyImplDecl()
997 Getr += "return " + getIvarAccessString(OID); in RewritePropertyImplDecl()
1017 RewriteObjCMethodDecl(OID->getContainingInterface(), in RewritePropertyImplDecl()
1024 RewriteIvarOffsetComputation(OID, Setr); in RewritePropertyImplDecl()
1038 Setr += getIvarAccessString(OID) + " = "; in RewritePropertyImplDecl()
1334 void RewriteModernObjC::RewriteImplementationDecl(Decl *OID) { in RewriteImplementationDecl() argument
1336 ObjCCategoryImplDecl *CID = dyn_cast<ObjCCategoryImplDecl>(OID); in RewriteImplementationDecl()
6994 if (OID->hasAttr<ObjCExceptionAttr>()) in hasObjCExceptionAttribute()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclObjC.cpp447 if (ObjCInterfaceDecl *OID = dyn_cast<ObjCInterfaceDecl>(ContDeclOfMethodDecl)) in ActOnStartOfObjCMethodDef() local
448 ImplDeclOfMethodDecl = OID->getImplementation(); in ActOnStartOfObjCMethodDef()
451 if (ObjCInterfaceDecl *OID = CD->getClassInterface()) in ActOnStartOfObjCMethodDef() local
452 ImplDeclOfMethodDecl = OID->getImplementation(); in ActOnStartOfObjCMethodDef()
3992 if (auto *OID = dyn_cast<ObjCImplementationDecl>(CurContext)) { in ActOnAtEnd() local
3993 for (auto PropImpl : OID->property_impls()) { in ActOnAtEnd()
3996 OID->addDecl(Getter); in ActOnAtEnd()
3999 OID->addDecl(Setter); in ActOnAtEnd()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp3053 if (auto *OID = dyn_cast<ObjCInterfaceDecl>(DC)) in getPrimaryContextForMerging() local
3054 return OID->getDefinition(); in getPrimaryContextForMerging()
3123 } else if (auto *OID = dyn_cast<ObjCInterfaceDecl>(LexicalDC)) { in getPrimaryDCForAnonymousDecl() local
3124 return OID->getCanonicalDecl()->getDefinition(); in getPrimaryDCForAnonymousDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclObjC.h420 QualType getSelfType(ASTContext &Context, const ObjCInterfaceDecl *OID,
H A DASTContext.h2473 uint64_t lookupFieldBitOffset(const ObjCInterfaceDecl *OID,
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp4834 const ObjCProtocolDecl *OID = getCursorObjCProtocolRef(C).first; in clang_getCursorSpelling() local
4835 assert(OID && "getCursorSpelling(): Missing protocol decl"); in clang_getCursorSpelling()
4836 return cxstring::createRef(OID->getIdentifier()->getNameStart()); in clang_getCursorSpelling()

12