| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 91 ObjCMethodDecl * 788 ObjCMethodDecl::ObjCMethodDecl( in ObjCMethodDecl() function in ObjCMethodDecl 818 ObjCMethodDecl *ObjCMethodDecl::Create( in Create() 831 ObjCMethodDecl *ObjCMethodDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 878 void ObjCMethodDecl::setAsRedeclaration(const ObjCMethodDecl *PrevMethod) { in setAsRedeclaration() 928 ObjCMethodDecl *ObjCMethodDecl::getNextRedeclarationImpl() { in getNextRedeclarationImpl() 977 ObjCMethodDecl *ObjCMethodDecl::getCanonicalDecl() { in getCanonicalDecl() 1003 ObjCMethodDecl *MD = in getCanonicalDecl() 1231 if (ObjCMethodDecl * in CollectOverriddenMethodsRecurse() 1248 if (const ObjCMethodDecl * in CollectOverriddenMethodsRecurse() [all …]
|
| H A D | ExprObjC.cpp | 29 ObjCMethodDecl *Method, SourceRange SR) in ObjCArrayLiteral() 41 QualType T, ObjCMethodDecl *Method, in Create() 55 ObjCMethodDecl *method, in ObjCDictionaryLiteral() 81 ObjCMethodDecl *method, SourceRange SR) { in Create() 112 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in ObjCMessageExpr() 131 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in ObjCMessageExpr() 179 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in Create() 198 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in Create() 217 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in Create() 266 if (const ObjCMethodDecl *MD = getMethodDecl()) { in getCallReturnType() [all …]
|
| H A D | Mangle.cpp | 189 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() 206 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() 295 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock() 325 void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD, in mangleObjCMethodName() 382 void MangleContext::mangleObjCMethodNameAsSourceName(const ObjCMethodDecl *MD, in mangleObjCMethodNameAsSourceName() 413 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in writeName()
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | property-atomic-bool.m | 16 // CHECK: ObjCMethodDecl {{.*}} implicit - p '_Bool' 17 // CHECK: ObjCMethodDecl {{.*}} implicit - setP: 'void' 21 // CHECK: ObjCMethodDecl {{.*}} implicit - p '_Bool' 22 // CHECK: ObjCMethodDecl {{.*}} implicit - setP: 'void' 27 // CHECK: ObjCMethodDecl {{.*}} implicit - p '_Bool' 28 // CHECK: ObjCMethodDecl {{.*}} implicit - setP: 'void' 33 // CHECK: ObjCMethodDecl {{.*}} implicit - p '_Bool' 34 // CHECK: ObjCMethodDecl {{.*}} implicit - setP: 'void'
|
| H A D | pragma-attribute-objc-subject-match-rules.m | 44 // CHECK-OBJC_METHOD: ObjCMethodDecl{{.*}} testInstanceMethod 46 // CHECK-OBJC_METHOD: ObjCMethodDecl{{.*}} testClassMethod 48 // CHECK-OBJC_METHOD_IS_INSTANCE: ObjCMethodDecl{{.*}} testInstanceMethod 50 // CHECK-OBJC_METHOD_IS_INSTANCE-LABEL: ObjCMethodDecl{{.*}} testClassMethod 52 // CHECK-HAS_TYPE_FUNCTION_TYPE-LABEL: ObjCMethodDecl{{.*}} testInstanceMethod 54 // CHECK-HAS_TYPE_FUNCTION_TYPE-LABEL: ObjCMethodDecl{{.*}} testClassMethod 61 // CHECK-OBJC_METHOD: ObjCMethodDecl{{.*}} testInstanceMethod 66 // CHECK-OBJC_METHOD: ObjCMethodDecl{{.*}} testClassMethod 76 // CHECK-OBJC_METHOD_IS_INSTANCE: ObjCMethodDecl{{.*}} testClassMethod 79 // CHECK-HAS_TYPE_FUNCTION_TYPE-LABEL: ObjCMethodDecl{{.*}} testInstanceMethod [all …]
|
| H A D | ast-dump-decl.m | 40 // CHECK: ObjCMethodDecl{{.*}} - TestObjCMethodDecl: 'int' variadic 48 // CHECK: ObjCMethodDecl{{.*}} - TestObjCMethodDecl: 'int' variadic 59 // CHECK-NEXT: ObjCMethodDecl{{.*}} foo 68 // CHECK-NEXT: ObjCMethodDecl{{.*}} foo 80 // CHECK-NEXT: ObjCMethodDecl{{.*}} foo 89 // CHECK-NEXT: ObjCMethodDecl{{.*}} bar 106 // CHECK-NEXT: ObjCMethodDecl{{.*}} bar 121 // CHECK-NEXT: ObjCMethodDecl{{.*}} getterFoo 122 // CHECK-NEXT: ObjCMethodDecl{{.*}} setterFoo: 124 // CHECK-NEXT: ObjCMethodDecl{{.*}} bar [all …]
|
| H A D | ast-dump-attr.m | 35 // CHECK: ObjCMethodDecl{{.*}} implicit{{.*}} Test3 37 // CHECK: ObjCMethodDecl{{.*}} implicit{{.*}} Test4 39 // CHECK: ObjCMethodDecl{{.*}} implicit{{.*}} Test5 56 // CHECK: ObjCMethodDecl{{.*}} Test9 'void' 59 // CHECK: ObjCMethodDecl{{.*}} Test10: 'void' 63 // CHECK: ObjCMethodDecl{{.*}} Test12:to: 'void'
|
| H A D | attr-swift_private.m | 8 // CHECK: ObjCMethodDecl {{.*}} method 'void' 16 // CHECK: ObjCMethodDecl {{.*}} method 'void'
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ObjCMethodList.h | 21 class ObjCMethodDecl; variable 28 llvm::PointerIntPair<ObjCMethodDecl *, 1> MethodAndHasMoreThanOneDecl; 33 ObjCMethodList(ObjCMethodDecl *M) in ObjCMethodList() 50 ObjCMethodDecl *getMethod() const { in getMethod() 53 void setMethod(ObjCMethodDecl *M) { in setMethod()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprObjC.h | 130 ObjCMethodDecl *BoxingMethod; 147 ObjCMethodDecl *getBoxingMethod() const { in getBoxingMethod() 195 ObjCMethodDecl *ArrayWithObjectsMethod; 324 ObjCMethodDecl *DictWithObjectsMethod; 665 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter, in ObjCPropertyRefExpr() 675 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter, in ObjCPropertyRefExpr() 686 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter, in ObjCPropertyRefExpr() 814 void setImplicitProperty(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter, in setImplicitProperty() 851 ObjCMethodDecl *GetAtIndexMethodDecl; 855 ObjCMethodDecl *SetAtIndexMethodDecl; [all …]
|
| H A D | DeclObjC.h | 232 static ObjCMethodDecl * 244 ObjCMethodDecl *getCanonicalDecl() override; 245 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() 767 ObjCMethodDecl *GetterMethodDecl = nullptr; 770 ObjCMethodDecl *SetterMethodDecl = nullptr; 1025 filtered_decl_iterator<ObjCMethodDecl, 1042 filtered_decl_iterator<ObjCMethodDecl, 1062 ObjCMethodDecl *getInstanceMethod(Selector Sel, 2446 void addClassMethod(ObjCMethodDecl *method) { in addClassMethod() 2778 ObjCMethodDecl *GetterMethodDecl = nullptr; [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGObjCRuntime.h | 50 class ObjCMethodDecl; variable 120 std::string getSymbolNameForMethod(const ObjCMethodDecl *method, 140 const ObjCMethodDecl *Method) = 0; 175 const ObjCMethodDecl *Method = nullptr) = 0; 189 const ObjCMethodDecl *Method, 208 const ObjCMethodDecl *Method = nullptr) = 0; 240 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 246 const ObjCMethodDecl *OMD, 338 MessageSendInfo getMessageSendInfo(const ObjCMethodDecl *method, 342 const ObjCMethodDecl *method, [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IvarInvalidationChecker.cpp | 57 typedef llvm::DenseMap<const ObjCMethodDecl*, 72 void addInvalidationMethod(const ObjCMethodDecl *MD) { in addInvalidationMethod() 80 bool hasMethod(const ObjCMethodDecl *MD) { in hasMethod() 116 const ObjCMethodDecl *InvalidationMethod; 251 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod() 402 const ObjCMethodDecl *SetterD = PD->getSetterMethodDecl(); in visit() 408 const ObjCMethodDecl *GetterD = PD->getGetterMethodDecl(); in visit() 429 const ObjCMethodDecl *InterfD = *I; in visit() 481 const ObjCMethodDecl *InterfD = *I; in visit() 606 const ObjCMethodDecl *MD = ME->getMethodDecl(); in checkObjCMessageExpr() [all …]
|
| H A D | DirectIvarAssignment.cpp | 42 static bool DefaultMethodFilter(const ObjCMethodDecl *M) { in DefaultMethodFilter() 61 const ObjCMethodDecl *MD; 68 MethodCrawler(const IvarToPropertyMapTy &InMap, const ObjCMethodDecl *InMD, in MethodCrawler() 86 bool (*ShouldSkipMethod)(const ObjCMethodDecl *); 189 ObjCMethodDecl *GetterMethod = in VisitBinaryOperator() 191 ObjCMethodDecl *SetterMethod = in VisitBinaryOperator() 212 static bool AttrFilter(const ObjCMethodDecl *M) { in AttrFilter()
|
| H A D | CheckObjCInstMethSignature.cpp | 39 static void CompareReturnTypes(const ObjCMethodDecl *MethDerived, in CompareReturnTypes() 40 const ObjCMethodDecl *MethAncestor, in CompareReturnTypes() 89 typedef llvm::DenseMap<Selector,ObjCMethodDecl*> MapTy; in CheckObjCInstMethSignature() 110 ObjCMethodDecl *MethDerived = MI->second; in CheckObjCInstMethSignature()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExprObjC.cpp | 563 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr() 676 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr() 1421 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(DC); in tryCaptureObjCSelf() 1542 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>( in getMessageSendResultType() 1623 static const ObjCMethodDecl * 1660 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext); in EmitRelatedResultTypeNoteForReturn() 1920 ObjCMethodDecl *Method = in isSelfExpr() 1964 ObjCMethodDecl *MD = nullptr; in LookupMethodInQualifiedType() 2505 ObjCMethodDecl *ImpliedMethod; in checkFoundationAPI() 3369 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage() [all …]
|
| H A D | SemaDeclObjC.cpp | 292 if (isa<ObjCMethodDecl>(ND)) { in DiagnoseObjCImplementedDeprecations() 315 << (isa<ObjCMethodDecl>(ND) in DiagnoseObjCImplementedDeprecations() 319 if (isa<ObjCMethodDecl>(ND)) in DiagnoseObjCImplementedDeprecations() 330 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in AddAnyMethodToGlobalPool() 365 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in ActOnStartOfObjCMethodDef() 438 ObjCMethodDecl *IMD = in ActOnStartOfObjCMethodDef() 3697 const ObjCMethodDecl * 4008 ObjCMethodDecl *Method = in ActOnAtEnd() 4273 const ObjCMethodDecl *Method; 4745 ObjCMethodDecl *ObjCMethod = ObjCMethodDecl::Create( in ActOnMethodDeclaration() [all …]
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | pragma-attribute-objc.m | 29 // CHECK-LABEL: ObjCMethodDecl{{.*}}testIm 36 // CHECK-LABEL: ObjCMethodDecl{{.*}}testCm 41 // CHECK-LABEL: ObjCMethodDecl{{.*}}testProp1 43 // CHECK-LABEL: ObjCMethodDecl{{.*}}setTestProp1 64 // CHECK-LABEL: ObjCMethodDecl{{.*}}testIm 75 // CHECK-LABEL: ObjCMethodDecl{{.*}}testCm 110 // CHECK-LABEL: ObjCMethodDecl{{.*}}testProtIm
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/ |
| H A D | clang-ast-from-dwarf-objc-property.m | 19 // CHECK: |-ObjCMethodDecl [[READONLY]] {{.*}} implicit - ro_number 'int' 25 // CHECK: |-ObjCMethodDecl [[CUSTOM]] {{.*}} - custom_getter 'int' 28 // CHECK: `-ObjCMethodDecl [[CLASS]] {{.*}} + class_property 'int'
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | CodeInjector.h | 23 class ObjCMethodDecl; variable 41 virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
|
| H A D | AnyCall.h | 97 AnyCall(const ObjCMethodDecl *D) : E(nullptr), D(D), K(ObjCMethod) {} in AnyCall() 136 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in forDecl() 149 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in parameters() 173 return cast<ObjCMethodDecl>(D)->getReturnType(); in getReturnType()
|
| H A D | BodyFarm.h | 26 class ObjCMethodDecl; variable 38 Stmt *getBody(const ObjCMethodDecl *D);
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 58 ObjCMethodDecl *OM); 63 ObjCMethodDecl *OM, 177 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) in canModify() 246 const ObjCMethodDecl *Method = Msg->getMethodDecl(); in rewriteToPropertyDotSyntax() 380 if (isa<ObjCMethodDecl>(D)) in migrateDecl() 455 static void rewriteToObjCProperty(const ObjCMethodDecl *Getter, in rewriteToObjCProperty() 650 if (ObjCMethodDecl *ImpMD = dyn_cast<ObjCMethodDecl>(ND)) in ClassImplementsAllMethodsAndProperties() 957 ObjCMethodDecl *OM) { in ReplaceWithInstancetype() 979 ObjCMethodDecl *OM) { in ReplaceWithClasstype() 1156 ObjCMethodDecl *Method) { in migrateProperty() [all …]
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexBody.cpp | 136 else if (auto *MD = dyn_cast<ObjCMethodDecl>(ParentDC)) in addCallRole() 232 if (ObjCMethodDecl *MD = E->getMethodDecl()) { in VisitObjCMessageExpr() 247 if (const ObjCMethodDecl *Getter = PRE->getImplicitPropertyGetter()) { in VisitObjCMessageExpr() 298 } else if (const ObjCMethodDecl *Getter = E->getImplicitPropertyGetter()) { in VisitObjCPropertyRefExpr() 327 bool passObjCLiteralMethodCall(const ObjCMethodDecl *MD, const Expr *E) { in passObjCLiteralMethodCall() 337 if (ObjCMethodDecl *MD = E->getBoxingMethod()) { in VisitObjCBoxedExpr() 344 if (ObjCMethodDecl *MD = E->getDictWithObjectsMethod()) { in VisitObjCDictionaryLiteral() 351 if (ObjCMethodDecl *MD = E->getArrayWithObjectsMethod()) { in VisitObjCArrayLiteral()
|
| /llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCDeclVendor.cpp | 298 clang::ObjCMethodDecl * 314 const clang::ObjCMethodDecl::ImplementationControl impControl = in BuildMethod() 315 clang::ObjCMethodDecl::None; in BuildMethod() 354 clang::ObjCMethodDecl *ret = clang::ObjCMethodDecl::Create( in BuildMethod() 443 clang::ObjCMethodDecl *method_decl = method_type.BuildMethod( in FinishDecl() 461 clang::ObjCMethodDecl *method_decl = method_type.BuildMethod( in FinishDecl()
|