/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 122 bool CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation loc, 379 bool CheckARCMethodDecl(ObjCMethodDecl *method); 381 bool checkInitMethod(ObjCMethodDecl *method, QualType receiverTypeIfCall); 385 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, 386 const ObjCMethodDecl *Overridden); 395 void CheckObjCMethodDirectOverrides(ObjCMethodDecl *method, 396 ObjCMethodDecl *overridden); 398 void CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod, 407 bool isObjCMethodDecl(Decl *D) { return isa_and_nonnull<ObjCMethodDecl>(D); } in isObjCMethodDecl() 415 void WarnConflictingTypedMethods(ObjCMethodDecl *Method, [all …]
|
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()
|
H A D | Attr.h | 35 return (D->getFunctionType() != nullptr) || llvm::isa<ObjCMethodDecl>(D); in isFuncOrMethodForAttrSubject() 58 return isa<ObjCMethodDecl>(D) || isa<BlockDecl>(D); in hasFunctionProto() 69 return cast<ObjCMethodDecl>(D)->param_size(); in getFunctionOrMethodNumParams() 76 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) in getFunctionOrMethodParam() 89 return cast<ObjCMethodDecl>(D)->parameters()[Idx]->getType(); in getFunctionOrMethodParamType() 101 return cast<ObjCMethodDecl>(D)->getReturnType(); in getFunctionOrMethodResultType() 107 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) in getFunctionOrMethodResultSourceRange() 117 return cast<ObjCMethodDecl>(D)->isVariadic(); in isFunctionOrMethodVariadic()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclObjC.cpp | 92 ObjCMethodDecl * 113 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth); in getMethod() 131 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth); in HasUserDeclaredSetterMethod() 140 if (ObjCMethodDecl *MD = Cat->getInstanceMethod(Sel)) in HasUserDeclaredSetterMethod() 549 llvm::SmallVectorImpl<const ObjCMethodDecl *> &Methods) const { in getDesignatedInitializers() 571 const ObjCMethodDecl **InitMethod) const { in isDesignatedInitializer() 591 if (const ObjCMethodDecl *MD = IFace->getInstanceMethod(Sel)) { in isDesignatedInitializer() 599 if (const ObjCMethodDecl *MD = Ext->getInstanceMethod(Sel)) { in isDesignatedInitializer() 699 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, in lookupMethod() 710 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() 210 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() 299 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock() 328 void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD, in mangleObjCMethodName() 385 void MangleContext::mangleObjCMethodNameAsSourceName(const ObjCMethodDecl *MD, in mangleObjCMethodNameAsSourceName() 416 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in writeName()
|
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclObjC.h | 140 class ObjCMethodDecl : public NamedDecl, public DeclContext { 169 ObjCMethodDecl( 223 ObjCMethodDecl *getNextRedeclarationImpl() override; 229 static ObjCMethodDecl * 239 static ObjCMethodDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID); 241 ObjCMethodDecl *getCanonicalDecl() override; 242 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() 243 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 268 void setAsRedeclaration(const ObjCMethodDecl *PrevMethod); 317 return const_cast<ObjCMethodDecl*>(this)->getClassInterface(); in getClassInterface() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
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()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExprObjC.cpp | 155 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() 249 static ObjCMethodDecl *getNSNumberFactoryMethod(SemaObjC &S, SourceLocation Loc, in getNSNumberFactoryMethod() 290 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod() 294 Method = ObjCMethodDecl::Create( in getNSNumberFactoryMethod() 353 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral() 516 ObjCMethodDecl *BoxingMethod = nullptr; in BuildObjCBoxedExpr() 573 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr() 683 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr() 772 ObjCMethodDecl *getterMethod, ObjCMethodDecl *setterMethod) { in BuildObjCSubscriptExpression() 818 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral() [all …]
|
H A D | SemaDeclObjC.cpp | 45 bool SemaObjC::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod() 138 << cast<ObjCMethodDecl>(NewD->getDeclContext()); in diagnoseNoescape() 141 void SemaObjC::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() 142 const ObjCMethodDecl *Overridden) { in CheckObjCMethodOverride() 209 ObjCMethodDecl::param_const_iterator oi = Overridden->param_begin(), in CheckObjCMethodOverride() 211 for (ObjCMethodDecl::param_iterator ni = NewMethod->param_begin(), in CheckObjCMethodOverride() 231 bool SemaObjC::CheckARCMethodDecl(ObjCMethodDecl *method) { in CheckARCMethodDecl() 299 if (isa<ObjCMethodDecl>(ND)) { in DiagnoseObjCImplementedDeprecations() 322 << (isa<ObjCMethodDecl>(ND) in DiagnoseObjCImplementedDeprecations() 326 if (isa<ObjCMethodDecl>(ND)) in DiagnoseObjCImplementedDeprecations() [all …]
|
H A D | SemaObjCProperty.cpp | 1032 static ObjCMethodDecl * 1034 ObjCMethodDecl *AccessorDecl, SourceLocation AtLoc, in RedeclarePropertyAccessor() 1036 ObjCMethodDecl *Decl = AccessorDecl; in RedeclarePropertyAccessor() 1037 ObjCMethodDecl *ImplDecl = ObjCMethodDecl::Create( in RedeclarePropertyAccessor() 1412 if (ObjCMethodDecl *getterMethod = property->getGetterMethodDecl()) { in ActOnPropertyImplDecl() 1418 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() 1477 if (ObjCMethodDecl *setterMethod = property->getSetterMethodDecl()) { in ActOnPropertyImplDecl() 1482 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() 1508 ObjCMethodDecl::param_iterator P = setterMethod->param_begin(); in ActOnPropertyImplDecl() 1688 ObjCMethodDecl *GetterMethod, in DiagnosePropertyAccessorMismatch() [all …]
|
H A D | SemaSwift.cpp | 133 << AL << isa<ObjCMethodDecl>(D); in handleError() 146 << AL << AL.getArgAsIdent(0)->Ident->getName() << isa<ObjCMethodDecl>(D) in handleError() 157 << AL << AL.getArgAsIdent(0)->Ident->getName() << isa<ObjCMethodDecl>(D) in handleError() 207 << AsyncAttr << isa<ObjCMethodDecl>(D); in checkSwiftAsyncErrorBlock() 272 << ErrorAttr << isa<ObjCMethodDecl>(D); in checkSwiftAsyncErrorBlock() 512 if (isa<ObjCMethodDecl>(D) || isa<FunctionDecl>(D)) { in DiagnoseName() 516 if (const auto *Method = dyn_cast<ObjCMethodDecl>(D)) { in DiagnoseName() 537 << AL << isa<ObjCMethodDecl>(D); in DiagnoseName()
|
/freebsd/contrib/llvm-project/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);
|
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexBody.cpp | 136 else if (auto *MD = dyn_cast<ObjCMethodDecl>(ParentDC)) in addCallRole() 246 if (ObjCMethodDecl *MD = E->getMethodDecl()) { in VisitObjCMessageExpr() 261 if (const ObjCMethodDecl *Getter = PRE->getImplicitPropertyGetter()) { in VisitObjCMessageExpr() 312 } else if (const ObjCMethodDecl *Getter = E->getImplicitPropertyGetter()) { in VisitObjCPropertyRefExpr() 341 bool passObjCLiteralMethodCall(const ObjCMethodDecl *MD, const Expr *E) { in passObjCLiteralMethodCall() 351 if (ObjCMethodDecl *MD = E->getBoxingMethod()) { in VisitObjCBoxedExpr() 358 if (ObjCMethodDecl *MD = E->getDictWithObjectsMethod()) { in VisitObjCDictionaryLiteral() 365 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 …]
|
/freebsd/contrib/llvm-project/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); 174 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) in canModify() 243 const ObjCMethodDecl *Method = Msg->getMethodDecl(); in rewriteToPropertyDotSyntax() 377 if (isa<ObjCMethodDecl>(D)) in migrateDecl() 452 static void rewriteToObjCProperty(const ObjCMethodDecl *Getter, in rewriteToObjCProperty() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
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()
|
H A D | ASTResultSynthesizer.h | 19 class ObjCMethodDecl; variable 118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CallEvent.cpp | 355 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) in getDeclaredResultType() 385 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) in isVariadic() 973 const ObjCMethodDecl *D = getDecl(); in parameters() 1123 const ObjCMethodDecl *MD = getDecl(); in getAccessedProperty() 1154 ObjCMethodDecl *D = nullptr; in canBeOverridenInSubclass() 1185 static const ObjCMethodDecl *findDefiningRedecl(const ObjCMethodDecl *MD) { in findDefiningRedecl() 1193 MD = cast<ObjCMethodDecl>(I); in findDefiningRedecl() 1234 static const ObjCMethodDecl * 1252 llvm::DenseMap<PrivateMethodKey, std::optional<const ObjCMethodDecl *>>; in lookupRuntimeDefinition() 1255 std::optional<const ObjCMethodDecl *> &Val = in lookupRuntimeDefinition() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderInternals.h | 33 class ObjCMethodDecl; variable 201 SmallVector<ObjCMethodDecl *, 2> Instance; 202 SmallVector<ObjCMethodDecl *, 2> Factory;
|