| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGObjCRuntime.h | 81 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 D | CGObjCRuntime.cpp | 31 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 D | CGObjCGNU.cpp | 1239 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 D | CGObjCMac.cpp | 1548 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 D | CGObjC.cpp | 440 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 D | CGDebugInfo.cpp | 267 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 D | DeclPrinter.cpp | 1328 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 D | Mangle.cpp | 451 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 D | DeclObjC.cpp | 285 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 D | DeclBase.cpp | 1266 if (auto *OID = dyn_cast<ObjCInterfaceDecl>(this)) in getPrimaryContext() local 1267 if (auto *Def = OID->getDefinition()) in getPrimaryContext()
|
| H A D | ASTContext.cpp | 7713 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 D | RecordLayoutBuilder.cpp | 3423 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 D | move_convert.runtime.pass.cpp | 31 template <int OID> 32 GenericConvertingDeleter(GenericConvertingDeleter<OID>) {} in GenericConvertingDeleter()
|
| H A D | move_convert.pass.cpp | 31 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 D | move_convert.pass.cpp | 32 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 D | AnalysisDeclContext.cpp | 373 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 D | BodyFarm.cpp | 894 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 D | RewriteObjCFoundationAPI.cpp | 144 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 D | RewriteObjC.cpp | 757 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 D | RewriteModernObjC.cpp | 941 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 D | SemaDeclObjC.cpp | 447 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 D | ASTReaderDecl.cpp | 3053 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 D | DeclObjC.h | 420 QualType getSelfType(ASTContext &Context, const ObjCInterfaceDecl *OID,
|
| H A D | ASTContext.h | 2473 uint64_t lookupFieldBitOffset(const ObjCInterfaceDecl *OID,
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 4834 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()
|