Home
last modified time | relevance | path

Searched refs:ObjCInterfaceDecl (Results 1 – 25 of 147) sorted by relevance

123456

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp133 if (const auto *ID = dyn_cast<ObjCInterfaceDecl>(this)) { in HasUserDeclaredSetterMethod()
161 ObjCInterfaceDecl *OSC = ID->getSuperClass(); in HasUserDeclaredSetterMethod()
189 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl()
259 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) { in FindPropertyDeclaration()
283 const auto *OID = cast<ObjCInterfaceDecl>(this); in FindPropertyDeclaration()
299 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass()) in FindPropertyDeclaration()
317 void ObjCInterfaceDecl::anchor() {} in anchor()
319 ObjCTypeParamList *ObjCInterfaceDecl::getTypeParamList() const { in getTypeParamList()
325 if (const ObjCInterfaceDecl *def = getDefinition()) in getTypeParamList()
331 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl; in getTypeParamList()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclObjC.h52 class ObjCInterfaceDecl; variable
315 ObjCInterfaceDecl *getClassInterface();
316 const ObjCInterfaceDecl *getClassInterface() const { in getClassInterface()
411 void createImplicitParams(ASTContext &Context, const ObjCInterfaceDecl *ID);
415 QualType getSelfType(ASTContext &Context, const ObjCInterfaceDecl *OID,
1150 class ObjCInterfaceDecl : public ObjCContainerDecl
1151 , public Redeclarable<ObjCInterfaceDecl> {
1162 ObjCInterfaceDecl *Definition = nullptr;
1243 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
1245 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl,
[all …]
H A DODRDiagsEmitter.h58 const ObjCInterfaceDecl *FirstID, const ObjCInterfaceDecl *SecondID,
59 const struct ObjCInterfaceDecl::DefinitionData *SecondDD) const;
63 bool diagnoseMismatch(const ObjCInterfaceDecl *FirstID, in diagnoseMismatch()
64 const ObjCInterfaceDecl *SecondID) const { in diagnoseMismatch()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTSource.cpp292 void ClangASTSource::CompleteType(clang::ObjCInterfaceDecl *interface_decl) { in CompleteType()
306 if (ObjCInterfaceDecl *original_iface_decl = in CompleteType()
307 dyn_cast<ObjCInterfaceDecl>(original.decl)) { in CompleteType()
308 ObjCInterfaceDecl *complete_iface_decl = in CompleteType()
327 clang::ObjCInterfaceDecl *ClangASTSource::GetCompleteObjCInterface( in GetCompleteObjCInterface()
328 const clang::ObjCInterfaceDecl *interface_decl) { in GetCompleteObjCInterface()
363 ObjCInterfaceDecl *complete_iface_decl(complete_interface_type->getDecl()); in GetCompleteObjCInterface()
419 if (ObjCInterfaceDecl *original_iface_decl = in FindExternalLexicalDecls()
420 dyn_cast<ObjCInterfaceDecl>(original.decl)) { in FindExternalLexicalDecls()
421 ObjCInterfaceDecl *complete_iface_decl = in FindExternalLexicalDecls()
[all …]
H A DClangASTSource.h156 void CompleteType(clang::ObjCInterfaceDecl *Class) override;
233 void CompleteType(clang::ObjCInterfaceDecl *Class) override { in CompleteType()
270 clang::ObjCInterfaceDecl *
271 GetCompleteObjCInterface(const clang::ObjCInterfaceDecl *interface_decl);
361 DeclFromUser<const clang::ObjCInterfaceDecl> &origin_iface_decl);
366 clang::ObjCInterfaceDecl *original_interface_decl, const char *log_info);
H A DClangASTImporter.cpp289 if (!isa<TagDecl>(to) && !isa<ObjCInterfaceDecl>(to)) in NewDeclImported()
393 clang::ObjCInterfaceDecl *class_interface_decl = in CanImport()
467 clang::ObjCInterfaceDecl *class_interface_decl = in Import()
835 clang::ObjCInterfaceDecl *interface_decl) { in CompleteObjCInterfaceDecl()
850 if (ObjCInterfaceDecl *super_class = interface_decl->getSuperClass()) in CompleteObjCInterfaceDecl()
895 if (ObjCInterfaceDecl *objc_interface_decl = in CompleteAndFetchChildren()
905 ObjCInterfaceDecl *origin_interface_decl = in CompleteAndFetchChildren()
906 llvm::dyn_cast<ObjCInterfaceDecl>(decl_origin.decl); in CompleteAndFetchChildren()
939 if (ObjCInterfaceDecl *objc_interface_decl = in RequireCompleteType()
1213 if (ObjCInterfaceDecl *to_objc_interface = dyn_cast<ObjCInterfaceDecl>(to)) { in ImportDefinitionTo()
[all …]
H A DClangExternalASTSourceCallbacks.cpp26 clang::ObjCInterfaceDecl *objc_decl) { in CompleteType()
58 if (auto *oid = llvm::dyn_cast<clang::ObjCInterfaceDecl>(DC)) { in FindExternalVisibleDeclsByName()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCRuntime.h48 class ObjCInterfaceDecl; variable
81 const ObjCInterfaceDecl *OID,
88 const ObjCInterfaceDecl *OID,
170 const ObjCInterfaceDecl *Class = nullptr,
180 const ObjCInterfaceDecl *OID, const ObjCMethodDecl *Method,
191 QualType ResultType, Selector Sel, const ObjCInterfaceDecl *Class,
258 const ObjCInterfaceDecl *OID) = 0;
293 const ObjCInterfaceDecl *Interface,
327 const ObjCInterfaceDecl *classReceiver,
329 static bool isWeakLinkedClass(const ObjCInterfaceDecl *cls);
[all …]
H A DCGObjCMac.cpp877 SmallVector<const ObjCInterfaceDecl *, 16> ImplementedClasses;
996 const ObjCInterfaceDecl *ID,
1036 const ObjCInterfaceDecl *ClassReceiver,
1197 llvm::Value *EmitClassRef(CodeGenFunction &CGF, const ObjCInterfaceDecl *ID);
1204 llvm::Value *EmitSuperClassRef(const ObjCInterfaceDecl *ID);
1216 llvm::Constant *EmitMetaClassRef(const ObjCInterfaceDecl *ID);
1276 const ObjCInterfaceDecl *Class,
1281 QualType ResultType, Selector Sel, const ObjCInterfaceDecl *Class,
1286 const ObjCInterfaceDecl *ID) override;
1341 const ObjCInterfaceDecl *Interface,
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp49 const clang::ObjCInterfaceDecl *interface_decl = in FindExternalVisibleDeclsByName()
50 llvm::dyn_cast<clang::ObjCInterfaceDecl>(decl_ctx); in FindExternalVisibleDeclsByName()
55 clang::ObjCInterfaceDecl *non_const_interface_decl = in FindExternalVisibleDeclsByName()
56 const_cast<clang::ObjCInterfaceDecl *>(interface_decl); in FindExternalVisibleDeclsByName()
87 void CompleteType(clang::ObjCInterfaceDecl *interface_decl) override { in CompleteType()
145 clang::ObjCInterfaceDecl *
165 clang::ObjCInterfaceDecl *new_iface_decl = clang::ObjCInterfaceDecl::Create( in GetDeclForISA()
301 clang::ObjCInterfaceDecl *interface_decl, const char *name, in BuildMethod()
398 bool AppleObjCDeclVendor::FinishDecl(clang::ObjCInterfaceDecl *interface_decl) { in FinishDecl()
426 clang::ObjCInterfaceDecl *superclass_decl = GetDeclForISA(isa); in FinishDecl()
[all …]
H A DAppleObjCDeclVendor.h36 clang::ObjCInterfaceDecl *GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa);
37 bool FinishDecl(clang::ObjCInterfaceDecl *decl);
45 clang::ObjCInterfaceDecl *>
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDirectIvarAssignment.cpp62 const ObjCInterfaceDecl *InterfD;
69 const ObjCInterfaceDecl *InID, BugReporter &InBR, in MethodCrawler()
95 const ObjCInterfaceDecl *InterD, in findPropertyBackingIvar()
102 ObjCInterfaceDecl *NonConstInterD = const_cast<ObjCInterfaceDecl*>(InterD); in findPropertyBackingIvar()
119 const ObjCInterfaceDecl *InterD = D->getClassInterface(); in checkASTDecl()
H A DIvarInvalidationChecker.cpp192 const ObjCInterfaceDecl *InterfaceD,
204 const ObjCInterfaceDecl *InterfaceD,
253 if (const ObjCInterfaceDecl *InterfD = dyn_cast<ObjCInterfaceDecl>(D)) { in containsInvalidationMethod()
284 const ObjCInterfaceDecl *IvInterf = IvTy->getInterfaceDecl(); in trackIvar()
300 const ObjCInterfaceDecl *InterfaceD, in findPropertyBackingIvar()
363 const ObjCInterfaceDecl *InterfaceD = ImplD->getClassInterface(); in visit()
366 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit()
378 ObjCInterfaceDecl::PropertyMap PropMap; in visit()
516 const ObjCInterfaceDecl *InterfaceD, bool MissingDeclaration) const { in reportNoInvalidationMethod()
H A DBasicObjCFoundationChecks.cpp55 if (const ObjCInterfaceDecl *ID = msg.getReceiverInterface()) in GetReceiverInterfaceName()
71 static FoundationClass findKnownClass(const ObjCInterfaceDecl *ID, in findKnownClass()
87 if (const ObjCInterfaceDecl *Super = ID->getSuperClass()) in findKnownClass()
232 const ObjCInterfaceDecl *ID = msg.getReceiverInterface(); in checkPreObjCMessage()
625 const ObjCInterfaceDecl *Class = msg.getReceiverInterface(); in checkPreObjCMessage()
688 const ObjCInterfaceDecl *Class = MD->getClassInterface(); in isVariadicMessage()
701 const ObjCInterfaceDecl *Class = msg.getReceiverInterface(); in isVariadicMessage()
839 const ObjCInterfaceDecl *ID = PT->getInterfaceDecl(); in isKnownNonNilCollectionType()
1019 const ObjCInterfaceDecl *ClassID = M.getReceiverInterface(); in checkPostObjCMessage()
1065 const ObjCInterfaceDecl *StaticClass; in getMethodReceiverIfKnownImmutable()
[all …]
H A DTrustNonnullChecker.cpp96 const ObjCInterfaceDecl *ID = Msg.getReceiverInterface(); in checkPostObjCMessage()
195 bool interfaceHasSuperclass(const ObjCInterfaceDecl *ID, in interfaceHasSuperclass()
200 if (const ObjCInterfaceDecl *Super = ID->getSuperClass()) in interfaceHasSuperclass()
H A DCheckObjCInstMethSignature.cpp80 const ObjCInterfaceDecl *D = ID->getClassInterface(); in CheckObjCInstMethSignature()
81 const ObjCInterfaceDecl *C = D->getSuperClass(); in CheckObjCInstMethSignature()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp63 ObjCInterfaceDecl *resultClass = result->getInterface(); in checkInitMethod()
77 const ObjCInterfaceDecl *receiverClass = nullptr; in checkInitMethod()
153 ObjCInterfaceDecl *CurrentClass in CheckObjCMethodOverride()
154 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
444 if (ObjCInterfaceDecl *IC = MDecl->getClassInterface()) { in ActOnStartOfObjCMethodDef()
454 if (ObjCInterfaceDecl *OID = dyn_cast<ObjCInterfaceDecl>(ContDeclOfMethodDecl)) in ActOnStartOfObjCMethodDef()
458 if (ObjCInterfaceDecl *OID = CD->getClassInterface()) in ActOnStartOfObjCMethodDef()
484 if (const ObjCInterfaceDecl *SuperClass = IC->getSuperClass()) { in ActOnStartOfObjCMethodDef()
518 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC()
522 ObjCInterfaceDecl *ID = candidate.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ValidateCandidate()
[all …]
H A DSemaObjCProperty.cpp222 (isa<ObjCInterfaceDecl>(ClassDecl) || in ActOnProperty()
230 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty()
233 ObjCInterfaceDecl *CurrentInterfaceDecl = IFace; in ActOnProperty()
234 while (ObjCInterfaceDecl *Super = CurrentInterfaceDecl->getSuperClass()) { in ActOnProperty()
415 ObjCInterfaceDecl *CCPrimary = CDecl->getClassInterface(); in HandlePropertyInClassExtension()
581 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl()
825 ObjCInterfaceDecl *ClassDecl, in SelectPropertyForSynthesisFromProtocols()
829 ObjCInterfaceDecl::ProtocolPropertySet ProtocolSet; in SelectPropertyForSynthesisFromProtocols()
830 ObjCInterfaceDecl::PropertyDeclOrder Properties; in SelectPropertyForSynthesisFromProtocols()
836 if (ObjCInterfaceDecl *SDecl = ClassDecl->getSuperClass()) { in SelectPropertyForSynthesisFromProtocols()
[all …]
H A DSemaExprObjC.cpp108 if (ObjCInterfaceDecl *StrIF = dyn_cast_or_null<ObjCInterfaceDecl>(IF)) { in BuildObjCStringLiteral()
123 if (ObjCInterfaceDecl *StrIF = dyn_cast_or_null<ObjCInterfaceDecl>(IF)) { in BuildObjCStringLiteral()
134 ObjCInterfaceDecl *NSStringIDecl = in BuildObjCStringLiteral()
135 ObjCInterfaceDecl::Create (Context, in BuildObjCStringLiteral()
152 const ObjCInterfaceDecl *Class, in validateBoxingMethod()
201 ValidateObjCLiteralInterfaceDecl(Sema &S, ObjCInterfaceDecl *Decl, in ValidateObjCLiteralInterfaceDecl()
223 static ObjCInterfaceDecl *
230 ObjCInterfaceDecl *ID = dyn_cast_or_null<ObjCInterfaceDecl>(IF); in LookupObjCInterfaceDeclForLiteral()
234 ID = ObjCInterfaceDecl::Create (Context, TU, SourceLocation(), II, in LookupObjCInterfaceDeclForLiteral()
1279 ObjCInterfaceDecl *IFace = CurMD->getClassInterface(); in findMethodInCurrentClass()
[all …]
H A DSemaAvailability.cpp95 ObjCInterfaceDecl *ClassReceiver) { in ShouldDiagnoseAvailabilityOfDecl()
131 if (const auto *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl()
243 if (const ObjCInterfaceDecl *Interface = CatOrImpl->getClassInterface()) in ShouldDiagnoseAvailabilityInContext()
249 if (const ObjCInterfaceDecl *Interface = CatD->getClassInterface()) in ShouldDiagnoseAvailabilityInContext()
412 const ObjCInterfaceDecl *UnknownObjCClass, in DoEmitAvailabilityWarning()
718 const ObjCInterfaceDecl *UnknownObjCClass, in EmitAvailabilityWarning()
815 ObjCInterfaceDecl *ClassReceiver = nullptr);
845 ObjCInterfaceDecl *ID = nullptr; in VisitObjCMessageExpr()
878 NamedDecl *D, SourceRange Range, ObjCInterfaceDecl *ReceiverClass) { in DiagnoseDeclAvailability()
1114 const ObjCInterfaceDecl *UnknownObjCClass, in DiagnoseAvailabilityOfDecl()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h248 ObjCInterfaceDecl *ActOnStartClassInterface(
258 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl,
336 ObjCInterfaceDecl *ID);
391 ObjCInterfaceDecl *CurrentClass,
482 void DiagnoseDuplicateIvars(ObjCInterfaceDecl *ID, ObjCInterfaceDecl *SID);
503 CollectIvarsToConstructOrDestruct(ObjCInterfaceDecl *OI,
551 ObjCInterfaceDecl *getObjCInterfaceDecl(const IdentifierInfo *&Id,
594 ObjCInterfaceDecl *NSNumberDecl;
597 ObjCInterfaceDecl *NSValueDecl;
609 ObjCInterfaceDecl *NSStringDecl;
[all …]
H A DDelayedDiagnostic.h43 class ObjCInterfaceDecl; variable
141 const ObjCInterfaceDecl *UnknownObjCClass,
223 const ObjCInterfaceDecl *getUnknownObjCClass() const { in getUnknownObjCClass()
239 const ObjCInterfaceDecl *UnknownObjCClass;
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DObjCNoReturn.cpp20 static bool isSubclass(const ObjCInterfaceDecl *Class, in isSubclass()
57 if (const ObjCInterfaceDecl *ID = ME->getReceiverInterface()) { in isImplicitNoReturn()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp115 llvm::SmallPtrSet<ObjCInterfaceDecl*, 8> ObjCSynthesizedStructs;
117 llvm::SmallPtrSet<ObjCInterfaceDecl*, 8> ObjCWrittenInterfaces;
119 SmallVector<ObjCInterfaceDecl*, 32> ObjCInterfacesSeen;
121 SmallVector<ObjCInterfaceDecl*, 8> DefinedNonLazyClasses;
148 llvm::DenseMap<ObjCInterfaceDecl *,
152 llvm::DenseSet<const ObjCInterfaceDecl *> ObjCInterefaceHasBitfieldGroups;
156 llvm::DenseMap<std::pair<const ObjCInterfaceDecl*, unsigned>, QualType> GroupRecordType;
192 if (ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(*I)) { in HandleTopLevelDecl()
315 void RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl,
321 void RewriteInterfaceDecl(ObjCInterfaceDecl *Dcl);
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRawPtrRefMemberChecker.cpp115 ObjCInterfaceDecl *getObjCDecl(const Type *TypePtr) const { in getObjCDecl()
137 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(CD)) { in visitObjCDecl()
181 if (const ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(CD)) { in visitObjCPropertyDecl()

123456