| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | 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 …]
|
| H A D | CGObjCGNU.cpp | 597 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 604 const ObjCMethodDecl *OMD, 1920 auto addIfExists = [&](const ObjCMethodDecl *OMD) { in GenerateClass() argument 1921 if (OMD && OMD->hasBody()) in GenerateClass() 1922 InstanceMethods.push_back(OMD); in GenerateClass() 2036 const ObjCMethodDecl *OMD, in GenerateDirectMethodPrologue() argument 2040 auto selfAddr = CGF.GetAddrOfLocalVar(OMD->getSelfDecl()); in GenerateDirectMethodPrologue() 2060 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue() 2087 auto retTy = OMD->getReturnType(); in GenerateDirectMethodPrologue() 2100 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue() [all …]
|
| H A D | CGObjCRuntime.h | 225 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 231 const ObjCMethodDecl *OMD,
|
| H A D | CGObjCMac.cpp | 1035 const ObjCMethodDecl *OMD, 1053 GenerateMethod(const ObjCMethodDecl *OMD, 1056 llvm::Function *GenerateDirectMethod(const ObjCMethodDecl *OMD, 1060 const ObjCMethodDecl *OMD, 3845 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument 3849 if (OMD->isDirectMethod()) { in GenerateMethod() 3850 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod() 3852 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod() 3856 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod() 3861 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod() [all …]
|
| H A D | CGObjCRuntime.cpp | 468 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument 472 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
|
| H A D | CodeGenFunction.cpp | 692 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local 693 Body = OMD->getBody(); in endsWithReturn() 872 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local 873 const IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction() 874 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction() 875 OMD->getMethodFamily() == OMF_initialize || in StartFunction() 876 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
|
| H A D | CGDebugInfo.cpp | 414 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument 417 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName() 418 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 433 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName() 4498 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local 4499 if (!OMD) in getObjCMethodDeclaration() 4502 if (CGM.getCodeGenOpts().DwarfVersion < 5 && !OMD->isDirectMethod()) in getObjCMethodDeclaration() 4505 if (OMD->isDirectMethod()) in getObjCMethodDeclaration() 4512 ID = OMD->getClassInterface(); in getObjCMethodDeclaration() 4521 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration() [all …]
|
| H A D | CodeGenModule.cpp | 7323 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local 7324 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl() 7325 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl() 7326 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl() 7331 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl() 7335 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local 7337 if (OMD->getBody()) in EmitTopLevelDecl() 7338 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
|
| H A D | CGDecl.cpp | 244 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local 245 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
|
| H A D | CodeGenFunction.h | 543 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {} 2271 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclPrinter.cpp | 1421 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument 1422 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl() 1426 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl() 1427 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl() 1428 OMD->getReturnType()); in VisitObjCMethodDecl() 1431 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl() 1433 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl() 1439 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl() 1446 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl() 1449 if (OMD->isVariadic()) in VisitObjCMethodDecl() [all …]
|
| H A D | Mangle.cpp | 205 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local 206 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName() 226 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local 227 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
|
| H A D | ASTContext.cpp | 639 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local 640 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl() 641 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() 644 if (OMD) in getCommentForDecl() 645 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MIGChecker.cpp | 180 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local 181 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
|
| H A D | LocalizationChecker.cpp | 840 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local 841 for (auto [Idx, FormalParam] : llvm::enumerate(OMD->parameters())) { in checkPreObjCMessage()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | AnalysisDeclContext.cpp | 365 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName() local 368 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getFunctionName() 369 const DeclContext *DC = OMD->getDeclContext(); in getFunctionName() 384 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getFunctionName()
|
| H A D | BodyFarm.cpp | 899 auto *OMD = Ext->getInstanceMethod(D->getSelector()); in getBody() local 900 if (OMD && !OMD->isImplicit()) in getBody()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 1062 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument 1067 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl() 1073 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl() 1082 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl() 1088 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl() 1096 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl() 1103 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl() 1123 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() 1137 if (OMD->isVariadic()) in RewriteObjCMethodDecl() 1172 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local [all …]
|
| H A D | RewriteModernObjC.cpp | 911 auto *OMD = IMP->getInstanceMethod(getter ? PD->getGetterName() in mustSynthesizeSetterGetterMethod() local 913 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod() 1229 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument 1234 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl() 1240 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl() 1249 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl() 1255 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl() 1263 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl() 1270 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl() 1290 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaExprMember.cpp | 515 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local 516 return OMD; in FindGetterSetterNameDeclFromProtocolList() 540 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local 541 GDecl = OMD; in FindGetterSetterNameDecl() 1504 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local 1516 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
|
| H A D | SemaObjCProperty.cpp | 1428 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local 1430 if (!OMD) in ActOnPropertyImplDecl() 1431 OMD = RedeclarePropertyAccessor(Context, IC, getterMethod, AtLoc, in ActOnPropertyImplDecl() 1433 PIDecl->setGetterMethodDecl(OMD); in ActOnPropertyImplDecl() 1492 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local 1494 if (!OMD) in ActOnPropertyImplDecl() 1495 OMD = RedeclarePropertyAccessor(Context, IC, setterMethod, in ActOnPropertyImplDecl() 1497 PIDecl->setSetterMethodDecl(OMD); in ActOnPropertyImplDecl()
|
| H A D | SemaExprObjC.cpp | 1750 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local 1751 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes() 1757 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
|
| H A D | SemaDeclAttr.cpp | 3778 if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in handleFormatArgAttr() local 3779 if (auto *Interface = OMD->getClassInterface()) in handleFormatArgAttr()
|
| H A D | SemaChecking.cpp | 3266 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in getFormatStringInfo() local 3267 IsVariadic = OMD->isVariadic(); in getFormatStringInfo()
|
| H A D | SemaDeclCXX.cpp | 3322 const CXXMethodDecl *OMD = *MD->begin_overridden_methods(); in DiagnoseAbsenceOfOverrideControl() local 3323 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()
|