| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 136 if (const auto *ID = dyn_cast<ObjCInterfaceDecl>(this)) { in HasUserDeclaredSetterMethod() 164 ObjCInterfaceDecl *OSC = ID->getSuperClass(); in HasUserDeclaredSetterMethod() 192 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() 262 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) { in FindPropertyDeclaration() 286 const auto *OID = cast<ObjCInterfaceDecl>(this); in FindPropertyDeclaration() 302 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass()) in FindPropertyDeclaration() 320 void ObjCInterfaceDecl::anchor() {} in anchor() 322 ObjCTypeParamList *ObjCInterfaceDecl::getTypeParamList() const { in getTypeParamList() 328 if (const ObjCInterfaceDecl *def = getDefinition()) in getTypeParamList() 334 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl; in getTypeParamList() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclObjC.h | 52 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, 1152 class ObjCInterfaceDecl : public ObjCContainerDecl 1153 , public Redeclarable<ObjCInterfaceDecl> { 1164 ObjCInterfaceDecl *Definition = nullptr; 1245 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, 1247 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, [all …]
|
| H A D | ODRDiagsEmitter.h | 58 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()
|
| /src/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangASTSource.cpp | 291 void ClangASTSource::CompleteType(clang::ObjCInterfaceDecl *interface_decl) { in CompleteType() 305 if (ObjCInterfaceDecl *original_iface_decl = in CompleteType() 306 dyn_cast<ObjCInterfaceDecl>(original.decl)) { in CompleteType() 307 ObjCInterfaceDecl *complete_iface_decl = in CompleteType() 326 clang::ObjCInterfaceDecl *ClangASTSource::GetCompleteObjCInterface( in GetCompleteObjCInterface() 327 const clang::ObjCInterfaceDecl *interface_decl) { in GetCompleteObjCInterface() 362 ObjCInterfaceDecl *complete_iface_decl(complete_interface_type->getDecl()); in GetCompleteObjCInterface() 418 if (ObjCInterfaceDecl *original_iface_decl = in FindExternalLexicalDecls() 419 dyn_cast<ObjCInterfaceDecl>(original.decl)) { in FindExternalLexicalDecls() 420 ObjCInterfaceDecl *complete_iface_decl = in FindExternalLexicalDecls() [all …]
|
| H A D | ClangASTSource.h | 154 void CompleteType(clang::ObjCInterfaceDecl *Class) override; 230 void CompleteType(clang::ObjCInterfaceDecl *Class) override { in CompleteType() 267 clang::ObjCInterfaceDecl * 268 GetCompleteObjCInterface(const clang::ObjCInterfaceDecl *interface_decl); 358 DeclFromUser<const clang::ObjCInterfaceDecl> &origin_iface_decl); 363 clang::ObjCInterfaceDecl *original_interface_decl, const char *log_info);
|
| H A D | ClangASTImporter.cpp | 290 if (!isa<TagDecl>(to) && !isa<ObjCInterfaceDecl>(to)) in NewDeclImported() 394 clang::ObjCInterfaceDecl *class_interface_decl = in CanImport() 468 clang::ObjCInterfaceDecl *class_interface_decl = in Import() 836 clang::ObjCInterfaceDecl *interface_decl) { in CompleteObjCInterfaceDecl() 851 if (ObjCInterfaceDecl *super_class = interface_decl->getSuperClass()) in CompleteObjCInterfaceDecl() 896 if (ObjCInterfaceDecl *objc_interface_decl = in CompleteAndFetchChildren() 906 ObjCInterfaceDecl *origin_interface_decl = in CompleteAndFetchChildren() 907 llvm::dyn_cast<ObjCInterfaceDecl>(decl_origin.decl); in CompleteAndFetchChildren() 940 if (ObjCInterfaceDecl *objc_interface_decl = in RequireCompleteType() 1188 if (ObjCInterfaceDecl *to_objc_interface = dyn_cast<ObjCInterfaceDecl>(to)) { in ImportDefinitionTo() [all …]
|
| H A D | ClangExternalASTSourceCallbacks.cpp | 26 clang::ObjCInterfaceDecl *objc_decl) { in CompleteType() 57 if (auto *oid = llvm::dyn_cast<clang::ObjCInterfaceDecl>(DC)) { in FindExternalVisibleDeclsByName()
|
| /src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGObjCRuntime.h | 48 class ObjCInterfaceDecl; variable 81 const ObjCInterfaceDecl *OID, 88 const ObjCInterfaceDecl *OID, 174 const ObjCInterfaceDecl *Class = nullptr, 188 const ObjCInterfaceDecl *OID, 203 const ObjCInterfaceDecl *Class, 273 const ObjCInterfaceDecl *OID) = 0; 310 const ObjCInterfaceDecl *Interface, 344 const ObjCInterfaceDecl *classReceiver, 346 static bool isWeakLinkedClass(const ObjCInterfaceDecl *cls); [all …]
|
| H A D | CGObjCMac.cpp | 910 SmallVector<const ObjCInterfaceDecl*, 16> ImplementedClasses; 1035 const ObjCInterfaceDecl *ID, 1079 const ObjCInterfaceDecl *ClassReceiver, 1245 const ObjCInterfaceDecl *ID); 1253 llvm::Value *EmitSuperClassRef(const ObjCInterfaceDecl *ID); 1266 llvm::Constant *EmitMetaClassRef(const ObjCInterfaceDecl *ID); 1327 const ObjCInterfaceDecl *Class, 1333 Selector Sel, const ObjCInterfaceDecl *Class, 1339 const ObjCInterfaceDecl *ID) override; 1397 const ObjCInterfaceDecl *Interface, [all …]
|
| /src/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCDeclVendor.cpp | 48 const clang::ObjCInterfaceDecl *interface_decl = in FindExternalVisibleDeclsByName() 49 llvm::dyn_cast<clang::ObjCInterfaceDecl>(decl_ctx); in FindExternalVisibleDeclsByName() 54 clang::ObjCInterfaceDecl *non_const_interface_decl = in FindExternalVisibleDeclsByName() 55 const_cast<clang::ObjCInterfaceDecl *>(interface_decl); in FindExternalVisibleDeclsByName() 86 void CompleteType(clang::ObjCInterfaceDecl *interface_decl) override { in CompleteType() 144 clang::ObjCInterfaceDecl * 164 clang::ObjCInterfaceDecl *new_iface_decl = clang::ObjCInterfaceDecl::Create( in GetDeclForISA() 300 clang::ObjCInterfaceDecl *interface_decl, const char *name, in BuildMethod() 397 bool AppleObjCDeclVendor::FinishDecl(clang::ObjCInterfaceDecl *interface_decl) { in FinishDecl() 425 clang::ObjCInterfaceDecl *superclass_decl = GetDeclForISA(isa); in FinishDecl() [all …]
|
| H A D | AppleObjCDeclVendor.h | 36 clang::ObjCInterfaceDecl *GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa); 37 bool FinishDecl(clang::ObjCInterfaceDecl *decl); 45 clang::ObjCInterfaceDecl *>
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DirectIvarAssignment.cpp | 62 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 D | IvarInvalidationChecker.cpp | 193 const ObjCInterfaceDecl *InterfaceD, 205 const ObjCInterfaceDecl *InterfaceD, 254 if (const ObjCInterfaceDecl *InterfD = dyn_cast<ObjCInterfaceDecl>(D)) { in containsInvalidationMethod() 285 const ObjCInterfaceDecl *IvInterf = IvTy->getInterfaceDecl(); in trackIvar() 301 const ObjCInterfaceDecl *InterfaceD, in findPropertyBackingIvar() 364 const ObjCInterfaceDecl *InterfaceD = ImplD->getClassInterface(); in visit() 367 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit() 379 ObjCInterfaceDecl::PropertyMap PropMap; in visit() 517 const ObjCInterfaceDecl *InterfaceD, bool MissingDeclaration) const { in reportNoInvalidationMethod()
|
| H A D | ObjCPropertyChecker.cpp | 57 if (const ObjCInterfaceDecl *IntD = in checkCopyMutable() 58 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) { in checkCopyMutable()
|
| H A D | BasicObjCFoundationChecks.cpp | 56 if (const ObjCInterfaceDecl *ID = msg.getReceiverInterface()) in GetReceiverInterfaceName() 72 static FoundationClass findKnownClass(const ObjCInterfaceDecl *ID, in findKnownClass() 88 if (const ObjCInterfaceDecl *Super = ID->getSuperClass()) in findKnownClass() 233 const ObjCInterfaceDecl *ID = msg.getReceiverInterface(); in checkPreObjCMessage() 626 const ObjCInterfaceDecl *Class = msg.getReceiverInterface(); in checkPreObjCMessage() 689 const ObjCInterfaceDecl *Class = MD->getClassInterface(); in isVariadicMessage() 702 const ObjCInterfaceDecl *Class = msg.getReceiverInterface(); in isVariadicMessage() 840 const ObjCInterfaceDecl *ID = PT->getInterfaceDecl(); in isKnownNonNilCollectionType() 1020 const ObjCInterfaceDecl *ClassID = M.getReceiverInterface(); in checkPostObjCMessage() 1066 const ObjCInterfaceDecl *StaticClass; in getMethodReceiverIfKnownImmutable() [all …]
|
| H A D | TrustNonnullChecker.cpp | 96 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 D | CheckObjCInstMethSignature.cpp | 80 const ObjCInterfaceDecl *D = ID->getClassInterface(); in CheckObjCInstMethSignature() 81 const ObjCInterfaceDecl *C = D->getSuperClass(); in CheckObjCInstMethSignature()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaDeclObjC.cpp | 64 ObjCInterfaceDecl *resultClass = result->getInterface(); in checkInitMethod() 78 const ObjCInterfaceDecl *receiverClass = nullptr; in checkInitMethod() 154 ObjCInterfaceDecl *CurrentClass in CheckObjCMethodOverride() 155 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride() 445 if (ObjCInterfaceDecl *IC = MDecl->getClassInterface()) { in ActOnStartOfObjCMethodDef() 455 if (ObjCInterfaceDecl *OID = dyn_cast<ObjCInterfaceDecl>(ContDeclOfMethodDecl)) in ActOnStartOfObjCMethodDef() 459 if (ObjCInterfaceDecl *OID = CD->getClassInterface()) in ActOnStartOfObjCMethodDef() 485 if (const ObjCInterfaceDecl *SuperClass = IC->getSuperClass()) { in ActOnStartOfObjCMethodDef() 519 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC() 523 ObjCInterfaceDecl *ID = candidate.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ValidateCandidate() [all …]
|
| H A D | SemaObjCProperty.cpp | 221 (isa<ObjCInterfaceDecl>(ClassDecl) || in ActOnProperty() 229 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty() 232 ObjCInterfaceDecl *CurrentInterfaceDecl = IFace; in ActOnProperty() 233 while (ObjCInterfaceDecl *Super = CurrentInterfaceDecl->getSuperClass()) { in ActOnProperty() 414 ObjCInterfaceDecl *CCPrimary = CDecl->getClassInterface(); in HandlePropertyInClassExtension() 580 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() 824 ObjCInterfaceDecl *ClassDecl, in SelectPropertyForSynthesisFromProtocols() 828 ObjCInterfaceDecl::ProtocolPropertySet ProtocolSet; in SelectPropertyForSynthesisFromProtocols() 829 ObjCInterfaceDecl::PropertyDeclOrder Properties; in SelectPropertyForSynthesisFromProtocols() 835 if (ObjCInterfaceDecl *SDecl = ClassDecl->getSuperClass()) { in SelectPropertyForSynthesisFromProtocols() [all …]
|
| H A D | SemaExprObjC.cpp | 110 if (ObjCInterfaceDecl *StrIF = dyn_cast_or_null<ObjCInterfaceDecl>(IF)) { in BuildObjCStringLiteral() 125 if (ObjCInterfaceDecl *StrIF = dyn_cast_or_null<ObjCInterfaceDecl>(IF)) { in BuildObjCStringLiteral() 136 ObjCInterfaceDecl *NSStringIDecl = in BuildObjCStringLiteral() 137 ObjCInterfaceDecl::Create (Context, in BuildObjCStringLiteral() 154 const ObjCInterfaceDecl *Class, in validateBoxingMethod() 203 ValidateObjCLiteralInterfaceDecl(Sema &S, ObjCInterfaceDecl *Decl, in ValidateObjCLiteralInterfaceDecl() 225 static ObjCInterfaceDecl * 232 ObjCInterfaceDecl *ID = dyn_cast_or_null<ObjCInterfaceDecl>(IF); in LookupObjCInterfaceDeclForLiteral() 236 ID = ObjCInterfaceDecl::Create (Context, TU, SourceLocation(), II, in LookupObjCInterfaceDeclForLiteral() 1284 ObjCInterfaceDecl *IFace = CurMD->getClassInterface(); in findMethodInCurrentClass() [all …]
|
| H A D | SemaAvailability.cpp | 94 ObjCInterfaceDecl *ClassReceiver) { in ShouldDiagnoseAvailabilityOfDecl() 117 if (const auto *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl() 224 if (const ObjCInterfaceDecl *Interface = CatOrImpl->getClassInterface()) in ShouldDiagnoseAvailabilityInContext() 230 if (const ObjCInterfaceDecl *Interface = CatD->getClassInterface()) in ShouldDiagnoseAvailabilityInContext() 393 const ObjCInterfaceDecl *UnknownObjCClass, in DoEmitAvailabilityWarning() 675 const ObjCInterfaceDecl *UnknownObjCClass, in EmitAvailabilityWarning() 775 ObjCInterfaceDecl *ClassReceiver = nullptr); 805 ObjCInterfaceDecl *ID = nullptr; in VisitObjCMessageExpr() 838 NamedDecl *D, SourceRange Range, ObjCInterfaceDecl *ReceiverClass) { in DiagnoseDeclAvailability() 1045 const ObjCInterfaceDecl *UnknownObjCClass, in DiagnoseAvailabilityOfDecl() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaObjC.h | 260 ObjCInterfaceDecl *ActOnStartClassInterface( 270 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl, 348 ObjCInterfaceDecl *ID); 399 ObjCInterfaceDecl *CurrentClass, 490 void DiagnoseDuplicateIvars(ObjCInterfaceDecl *ID, ObjCInterfaceDecl *SID); 511 CollectIvarsToConstructOrDestruct(ObjCInterfaceDecl *OI, 559 ObjCInterfaceDecl *getObjCInterfaceDecl(const IdentifierInfo *&Id, 602 ObjCInterfaceDecl *NSNumberDecl; 605 ObjCInterfaceDecl *NSValueDecl; 617 ObjCInterfaceDecl *NSStringDecl; [all …]
|
| H A D | DelayedDiagnostic.h | 43 class ObjCInterfaceDecl; variable 141 const ObjCInterfaceDecl *UnknownObjCClass, 223 const ObjCInterfaceDecl *getUnknownObjCClass() const { in getUnknownObjCClass() 239 const ObjCInterfaceDecl *UnknownObjCClass;
|
| /src/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ObjCNoReturn.cpp | 20 static bool isSubclass(const ObjCInterfaceDecl *Class, in isSubclass() 57 if (const ObjCInterfaceDecl *ID = ME->getReceiverInterface()) { in isImplicitNoReturn()
|
| /src/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 114 llvm::SmallPtrSet<ObjCInterfaceDecl*, 8> ObjCSynthesizedStructs; 116 llvm::SmallPtrSet<ObjCInterfaceDecl*, 8> ObjCWrittenInterfaces; 118 SmallVector<ObjCInterfaceDecl*, 32> ObjCInterfacesSeen; 120 SmallVector<ObjCInterfaceDecl*, 8> DefinedNonLazyClasses; 149 llvm::DenseMap<ObjCInterfaceDecl *, 153 llvm::DenseSet<const ObjCInterfaceDecl *> ObjCInterefaceHasBitfieldGroups; 157 llvm::DenseMap<std::pair<const ObjCInterfaceDecl*, unsigned>, QualType> GroupRecordType; 193 if (ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(*I)) { in HandleTopLevelDecl() 316 void RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, 322 void RewriteInterfaceDecl(ObjCInterfaceDecl *Dcl); [all …]
|