| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 91 ObjCMethodDecl * 112 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth); in getMethod() 130 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth); in HasUserDeclaredSetterMethod() 139 if (ObjCMethodDecl *MD = Cat->getInstanceMethod(Sel)) in HasUserDeclaredSetterMethod() 550 llvm::SmallVectorImpl<const ObjCMethodDecl *> &Methods) const { in getDesignatedInitializers() 572 const ObjCMethodDecl **InitMethod) const { in isDesignatedInitializer() 592 if (const ObjCMethodDecl *MD = IFace->getInstanceMethod(Sel)) { in isDesignatedInitializer() 600 if (const ObjCMethodDecl *MD = Ext->getInstanceMethod(Sel)) { in isDesignatedInitializer() 700 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, in lookupMethod() 711 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() [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() 147 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() [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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | ExprObjC.h | 129 ObjCMethodDecl *BoxingMethod; 135 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method, SourceRange R) in ObjCBoxedExpr() 146 ObjCMethodDecl *getBoxingMethod() const { in getBoxingMethod() 194 ObjCMethodDecl *ArrayWithObjectsMethod; 197 QualType T, ObjCMethodDecl * Method, 209 QualType T, ObjCMethodDecl * Method, 240 ObjCMethodDecl *getArrayWithObjectsMethod() const { in getArrayWithObjectsMethod() 323 ObjCMethodDecl *DictWithObjectsMethod; 330 QualType T, ObjCMethodDecl *method, 350 QualType T, ObjCMethodDecl *method, [all …]
|
| H A D | DeclObjC.h | 138 class ObjCMethodDecl : public NamedDecl, public DeclContext { 171 ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc, 225 ObjCMethodDecl *getNextRedeclarationImpl() override; 231 static ObjCMethodDecl * 241 static ObjCMethodDecl *CreateDeserialized(ASTContext &C, unsigned ID); 243 ObjCMethodDecl *getCanonicalDecl() override; 244 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() 245 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 270 void setAsRedeclaration(const ObjCMethodDecl *PrevMethod); 319 return const_cast<ObjCMethodDecl*>(this)->getClassInterface(); in getClassInterface() [all …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IvarInvalidationChecker.cpp | 56 typedef llvm::SmallSetVector<const ObjCMethodDecl*, 2> MethodSet; 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; 210 const ObjCMethodDecl *MethodD) const; 226 static bool isInvalidationMethod(const ObjCMethodDecl *M, bool LookForPartial) { in isInvalidationMethod() 251 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod() 401 const ObjCMethodDecl *SetterD = PD->getSetterMethodDecl(); in visit() 407 const ObjCMethodDecl *GetterD = PD->getGetterMethodDecl(); in visit() [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()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaExprObjC.cpp | 150 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() 243 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, in getNSNumberFactoryMethod() 284 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod() 289 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod() 295 /*isDefined=*/false, ObjCMethodDecl::Required, in getNSNumberFactoryMethod() 346 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral() 507 ObjCMethodDecl *BoxingMethod = nullptr; in BuildObjCBoxedExpr() 564 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr() 571 /*isDefined=*/false, ObjCMethodDecl::Required, in BuildObjCBoxedExpr() 677 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr() [all …]
|
| H A D | SemaDeclObjC.cpp | 42 bool Sema::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod() 133 << cast<ObjCMethodDecl>(NewD->getDeclContext()); in diagnoseNoescape() 136 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() 137 const ObjCMethodDecl *Overridden) { in CheckObjCMethodOverride() 203 ObjCMethodDecl::param_const_iterator oi = Overridden->param_begin(), in CheckObjCMethodOverride() 205 for (ObjCMethodDecl::param_iterator ni = NewMethod->param_begin(), in CheckObjCMethodOverride() 225 bool Sema::CheckARCMethodDecl(ObjCMethodDecl *method) { in CheckARCMethodDecl() 292 if (isa<ObjCMethodDecl>(ND)) { in DiagnoseObjCImplementedDeprecations() 315 << (isa<ObjCMethodDecl>(ND) in DiagnoseObjCImplementedDeprecations() 319 if (isa<ObjCMethodDecl>(ND)) in DiagnoseObjCImplementedDeprecations() [all …]
|
| H A D | SemaObjCProperty.cpp | 1047 static ObjCMethodDecl * 1049 ObjCMethodDecl *AccessorDecl, SourceLocation AtLoc, in RedeclarePropertyAccessor() 1051 ObjCMethodDecl *Decl = AccessorDecl; in RedeclarePropertyAccessor() 1052 ObjCMethodDecl *ImplDecl = ObjCMethodDecl::Create( in RedeclarePropertyAccessor() 1434 if (ObjCMethodDecl *getterMethod = property->getGetterMethodDecl()) { in ActOnPropertyImplDecl() 1440 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() 1499 if (ObjCMethodDecl *setterMethod = property->getSetterMethodDecl()) { in ActOnPropertyImplDecl() 1504 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() 1530 ObjCMethodDecl::param_iterator P = setterMethod->param_begin(); in ActOnPropertyImplDecl() 1710 ObjCMethodDecl *GetterMethod, in DiagnosePropertyAccessorMismatch() [all …]
|
| H A D | SemaAvailability.cpp | 100 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl() 102 ObjCMethodDecl *Init = ClassReceiver->lookupInstanceMethod( in ShouldDiagnoseAvailabilityOfDecl() 139 if (const auto *MD = dyn_cast<ObjCMethodDecl>(OffendingDecl)) { in ShouldDiagnoseAvailabilityInContext() 158 if (const auto *MethodD = dyn_cast<ObjCMethodDecl>(Ctx)) in ShouldDiagnoseAvailabilityInContext() 210 if (isa<TagDecl>(Ctx) || isa<FunctionDecl>(Ctx) || isa<ObjCMethodDecl>(Ctx)) in findEnclosingDeclToAnnotate() 288 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in createAttributeInsertion() 503 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() 692 if (ObjCMethodDecl *D = Msg->getMethodDecl()) { in VisitObjCMessageExpr() 907 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(D)) in DiagnoseUnguardedAvailabilityViolations() 957 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in DiagnoseAvailabilityOfDecl()
|
| /openbsd-src/gnu/llvm/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 | 98 AnyCall(const ObjCMethodDecl *D) : E(nullptr), D(D), K(ObjCMethod) {} in AnyCall() 137 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in forDecl() 150 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in parameters() 174 return cast<ObjCMethodDecl>(D)->getReturnType(); in getReturnType()
|
| H A D | BodyFarm.h | 26 class ObjCMethodDecl; variable 38 Stmt *getBody(const ObjCMethodDecl *D);
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 58 ObjCMethodDecl *OM); 59 bool migrateProperty(ASTContext &Ctx, ObjCContainerDecl *D, ObjCMethodDecl *OM); 60 void migrateNsReturnsInnerPointer(ASTContext &Ctx, ObjCMethodDecl *OM); 63 ObjCMethodDecl *OM, 72 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated); 82 const ObjCMethodDecl *MethodDecl); 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() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| H A D | IndexDecl.cpp | 79 static bool hasUserDefined(const ObjCMethodDecl *D, in hasUserDefined() 81 const ObjCMethodDecl *MD = Container->getMethod(D->getSelector(), in hasUserDefined() 110 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(DC)) { in handleDeclarator() 139 bool handleObjCMethod(const ObjCMethodDecl *D, in handleObjCMethod() 142 SmallVector<const ObjCMethodDecl*, 4> Overriden; in handleObjCMethod() 513 bool VisitObjCMethodDecl(const ObjCMethodDecl *D) { in VisitObjCMethodDecl() 524 if (ObjCMethodDecl *MD = D->getGetterMethodDecl()) in VisitObjCPropertyDecl() 527 if (ObjCMethodDecl *MD = D->getSetterMethodDecl()) in VisitObjCPropertyDecl() 559 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) { in VisitObjCPropertyImplDecl() 563 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) { in VisitObjCPropertyImplDecl() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | CallEvent.cpp | 352 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) in getDeclaredResultType() 382 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) in isVariadic() 945 const ObjCMethodDecl *D = getDecl(); in parameters() 1095 const ObjCMethodDecl *MD = getDecl(); in getAccessedProperty() 1126 ObjCMethodDecl *D = nullptr; in canBeOverridenInSubclass() 1157 static const ObjCMethodDecl *findDefiningRedecl(const ObjCMethodDecl *MD) { in findDefiningRedecl() 1165 MD = cast<ObjCMethodDecl>(I); in findDefiningRedecl() 1206 static const ObjCMethodDecl * 1224 llvm::DenseMap<PrivateMethodKey, std::optional<const ObjCMethodDecl *>>; in lookupRuntimeDefinition() 1227 std::optional<const ObjCMethodDecl *> &Val = in lookupRuntimeDefinition() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTResultSynthesizer.h | 19 class ObjCMethodDecl; variable 118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
|
| H A D | ASTResultSynthesizer.cpp | 64 else if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D)) in TransformTopLevelDecl() 84 if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D)) { in TransformTopLevelDecl() 157 ObjCMethodDecl *MethodDecl) { in SynthesizeObjCMethodResult()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Frontend/ |
| H A D | AnalysisConsumer.cpp | 324 bool VisitObjCMethodDecl(ObjCMethodDecl *MD) { in VisitObjCMethodDecl() 382 if (isa<ObjCMethodDecl>(I)) in storeTopLevelDecls() 409 if (isa<ObjCMethodDecl>(D)) in shouldSkipFunction() 429 if (Visited.count(D) && isa<ObjCMethodDecl>(D)) { in getInliningModeForFunction() 430 const ObjCMethodDecl *ObjCM = cast<ObjCMethodDecl>(D); in getInliningModeForFunction() 493 Visited.insert(isa<ObjCMethodDecl>(Callee) ? Callee in HandleDeclsCallGraph()
|