| /freebsd-14-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| HD | CGObjC.cpp | 686 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr() local 687 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext()); in EmitObjCMessageExpr() 690 OMD->getClassInterface(), in EmitObjCMessageExpr() 752 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD, in StartObjCMethod() argument 754 SourceLocation StartLoc = OMD->getBeginLoc(); in StartObjCMethod() 757 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod() 760 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod() 762 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod() 763 if (OMD->isDirectMethod()) { in StartObjCMethod() 765 CGM.SetLLVMFunctionAttributes(OMD, FI, Fn, /*IsThunk=*/false); in StartObjCMethod() [all …]
|
| HD | CGObjCGNU.cpp | 598 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 605 const ObjCMethodDecl *OMD, 1911 auto addIfExists = [&](const ObjCMethodDecl *OMD) { in GenerateClass() argument 1912 if (OMD && OMD->hasBody()) in GenerateClass() 1913 InstanceMethods.push_back(OMD); in GenerateClass() 2026 const ObjCMethodDecl *OMD, in GenerateDirectMethodPrologue() argument 2030 auto selfAddr = CGF.GetAddrOfLocalVar(OMD->getSelfDecl()); in GenerateDirectMethodPrologue() 2050 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue() 2077 auto retTy = OMD->getReturnType(); in GenerateDirectMethodPrologue() 2090 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue() [all …]
|
| HD | CGObjCRuntime.h | 240 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 246 const ObjCMethodDecl *OMD,
|
| HD | CGObjCMac.cpp | 1078 const ObjCMethodDecl *OMD, 1097 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 1100 llvm::Function *GenerateDirectMethod(const ObjCMethodDecl *OMD, 1104 const ObjCMethodDecl *OMD, 3947 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument 3951 if (OMD->isDirectMethod()) { in GenerateMethod() 3952 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod() 3954 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod() 3958 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod() 3964 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod() [all …]
|
| HD | CGObjCRuntime.cpp | 469 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument 473 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
|
| HD | CodeGenFunction.cpp | 686 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local 687 Body = OMD->getBody(); in endsWithReturn() 855 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local 856 const IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction() 857 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction() 858 OMD->getMethodFamily() == OMF_initialize || in StartFunction() 859 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
|
| HD | CGDebugInfo.cpp | 275 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument 278 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName() 279 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 294 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName() 4246 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local 4247 if (!OMD) in getObjCMethodDeclaration() 4250 if (CGM.getCodeGenOpts().DwarfVersion < 5 && !OMD->isDirectMethod()) in getObjCMethodDeclaration() 4253 if (OMD->isDirectMethod()) in getObjCMethodDeclaration() 4260 ID = OMD->getClassInterface(); in getObjCMethodDeclaration() 4269 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration() [all …]
|
| HD | CodeGenModule.cpp | 6997 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local 6998 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl() 6999 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl() 7000 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl() 7005 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl() 7009 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local 7011 if (OMD->getBody()) in EmitTopLevelDecl() 7012 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
|
| HD | CGDecl.cpp | 237 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local 238 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
|
| HD | CodeGenFunction.h | 554 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {} 2258 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
|
| /freebsd-14-stable/contrib/llvm-project/clang/lib/AST/ |
| HD | DeclPrinter.cpp | 1385 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument 1386 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl() 1390 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl() 1391 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl() 1392 OMD->getReturnType()); in VisitObjCMethodDecl() 1395 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl() 1397 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl() 1403 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl() 1410 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl() 1413 if (OMD->isVariadic()) in VisitObjCMethodDecl() [all …]
|
| HD | Mangle.cpp | 189 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local 190 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName() 210 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local 211 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
|
| HD | ASTContext.cpp | 606 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local 607 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl() 608 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() 611 if (OMD) in getCommentForDecl() 612 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
|
| /freebsd-14-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| HD | MIGChecker.cpp | 180 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local 181 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
|
| HD | LocalizationChecker.cpp | 844 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local 845 for (auto [Idx, FormalParam] : llvm::enumerate(OMD->parameters())) { in checkPreObjCMessage()
|
| /freebsd-14-stable/contrib/llvm-project/clang/lib/Analysis/ |
| HD | AnalysisDeclContext.cpp | 367 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName() local 370 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getFunctionName() 371 const DeclContext *DC = OMD->getDeclContext(); in getFunctionName() 386 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getFunctionName()
|
| HD | BodyFarm.cpp | 899 auto *OMD = Ext->getInstanceMethod(D->getSelector()); in getBody() local 900 if (OMD && !OMD->isImplicit()) in getBody()
|
| /freebsd-14-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| HD | RewriteObjC.cpp | 1064 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument 1069 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl() 1075 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl() 1084 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl() 1090 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl() 1098 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl() 1105 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl() 1125 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() 1139 if (OMD->isVariadic()) in RewriteObjCMethodDecl() 1174 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local [all …]
|
| HD | RewriteModernObjC.cpp | 912 auto *OMD = IMP->getInstanceMethod(getter ? PD->getGetterName() in mustSynthesizeSetterGetterMethod() local 914 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod() 1230 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument 1235 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl() 1241 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl() 1250 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl() 1256 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl() 1264 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl() 1271 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl() 1291 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/clang/lib/Sema/ |
| HD | SemaExprMember.cpp | 514 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local 515 return OMD; in FindGetterSetterNameDeclFromProtocolList() 539 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local 540 GDecl = OMD; in FindGetterSetterNameDecl() 1569 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local 1581 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
|
| HD | SemaObjCProperty.cpp | 1418 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local 1420 if (!OMD) in ActOnPropertyImplDecl() 1421 OMD = RedeclarePropertyAccessor(Context, IC, getterMethod, AtLoc, in ActOnPropertyImplDecl() 1423 PIDecl->setGetterMethodDecl(OMD); in ActOnPropertyImplDecl() 1482 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local 1484 if (!OMD) in ActOnPropertyImplDecl() 1485 OMD = RedeclarePropertyAccessor(Context, IC, setterMethod, in ActOnPropertyImplDecl() 1487 PIDecl->setSetterMethodDecl(OMD); in ActOnPropertyImplDecl()
|
| HD | SemaExprObjC.cpp | 1763 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local 1764 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes() 1770 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
|
| HD | SemaDeclAttr.cpp | 3355 if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in handleFormatArgAttr() local 3356 if (auto *Interface = OMD->getClassInterface()) in handleFormatArgAttr()
|
| HD | SemaChecking.cpp | 5835 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in checkFormatStringExpr() local 5836 IsVariadic = OMD->isVariadic(); in checkFormatStringExpr()
|
| HD | SemaDeclCXX.cpp | 3230 const CXXMethodDecl *OMD = *MD->begin_overridden_methods(); in DiagnoseAbsenceOfOverrideControl() local 3231 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()
|