Home
last modified time | relevance | path

Searched refs:OMD (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGObjC.cpp756 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
762 if (OMD->isDirectMethod()) { in StartObjCMethod()
773 args.append(OMD->param_begin(), OMD->param_end()); in StartObjCMethod()
775 CurGD = OMD; in StartObjCMethod()
776 CurEHLocation = OMD->getEndLoc(); in StartObjCMethod()
778 StartFunction(OMD, OMD->getReturnType(), Fn, FI, args, in StartObjCMethod()
781 if (OMD->isDirectMethod()) { in StartObjCMethod()
791 OMD->isInstanceMethod() && in StartObjCMethod()
806 StartObjCMethod(OMD, OMD->getClassInterface()); in GenerateObjCMethod()
1056 FinishFunction(OMD->getEndLoc()); in GenerateObjCGetter()
[all …]
H A DCGObjCRuntime.h240 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
246 const ObjCMethodDecl *OMD,
H A DCGObjCGNU.cpp600 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
603 const ObjCMethodDecl *OMD,
1903 auto addIfExists = [&](const ObjCMethodDecl *OMD) { in GenerateClass() argument
1904 if (OMD && OMD->hasBody()) in GenerateClass()
1905 InstanceMethods.push_back(OMD); in GenerateClass()
2910 for (const auto *OMD : Methods) { in GenerateMethodList() local
2912 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
2917 Method.add(GetConstantSelector(OMD->getSelector(), in GenerateMethodList()
2918 Context.getObjCEncodingForMethodDecl(OMD))); in GenerateMethodList()
3958 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
[all …]
H A DCGObjCMac.cpp1093 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
3960 if (OMD->isDirectMethod()) { in GenerateMethod()
3961 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod()
3963 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod()
3973 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod()
3981 auto *COMD = OMD->getCanonicalDecl(); in GenerateDirectMethod()
3995 if (!OMD->getBody() || COMD->getReturnType() == OMD->getReturnType()) in GenerateDirectMethod()
4046 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue()
4090 auto retTy = OMD->getReturnType(); in GenerateDirectMethodPrologue()
4104 if (OMD->getCmdDecl()->isUsed()) { in GenerateDirectMethodPrologue()
[all …]
H A DCGObjCRuntime.cpp470 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument
474 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
H A DCodeGenFunction.cpp633 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local
634 Body = OMD->getBody(); in endsWithReturn()
780 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local
781 IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction()
782 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction()
783 OMD->getMethodFamily() == OMF_initialize || in StartFunction()
784 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
H A DCGDebugInfo.cpp265 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName()
266 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
281 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName()
3930 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local
3931 if (!OMD) in getObjCMethodDeclaration()
3937 if (OMD->isDirectMethod()) in getObjCMethodDeclaration()
3944 ID = OMD->getClassInterface(); in getObjCMethodDeclaration()
3953 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration()
3956 ObjCMethodCache[ID].push_back({FD, OMD->isDirectMethod()}); in getObjCMethodDeclaration()
4082 Name = getObjCMethodName(OMD); in emitFunctionStart()
[all …]
H A DCodeGenModule.cpp6206 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local
6207 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl()
6208 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl()
6209 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl()
6214 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl()
6218 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local
6220 if (OMD->getBody()) in EmitTopLevelDecl()
6221 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
H A DCGDecl.cpp231 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local
232 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
H A DCodeGenFunction.h500 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {}
2099 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSemanticHighlighting.cpp108 if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in kindForDecl() local
109 return OMD->isClassMethod() ? HighlightingKind::StaticMethod in kindForDecl()
231 if (const auto *OMD = llvm::dyn_cast<ObjCMethodDecl>(D)) in isStatic() local
232 return OMD->isClassMethod(); in isStatic()
670 bool VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument
672 OMD->getSelectorLocs(Locs); in VisitObjCMethodDecl()
674 isDefaultLibrary(OMD)); in VisitObjCMethodDecl()
682 if (ObjCMethodDecl *OMD = OME->getMethodDecl()) in VisitObjCMessageExpr() local
683 DefaultLibrary = isDefaultLibrary(OMD); in VisitObjCMessageExpr()
697 if (OMD->isClassMethod()) in highlightObjCImplicitPropertyRef()
[all …]
H A DFindTarget.cpp667 void VisitObjCMethodDecl(const ObjCMethodDecl *OMD) { in refInDecl()
670 OMD->getSelectorStartLoc(), in refInDecl()
672 {OMD}}); in refInDecl()
H A DXRefs.cpp930 } else if (auto *OMD = in handleDeclOccurrence() local
932 OMD->getSelectorLocs(Locs); in handleDeclOccurrence()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclPrinter.cpp1286 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl()
1290 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl()
1291 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl()
1292 OMD->getReturnType()); in VisitObjCMethodDecl()
1295 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl()
1297 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl()
1303 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl()
1310 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl()
1313 if (OMD->isVariadic()) in VisitObjCMethodDecl()
1316 prettyPrintAttributes(OMD); in VisitObjCMethodDecl()
[all …]
H A DMangle.cpp189 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
190 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
206 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
207 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMIGChecker.cpp176 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local
177 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
H A DLocalizationChecker.cpp848 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local
849 auto formals = OMD->parameters(); in checkPreObjCMessage()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp368 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName() local
371 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getFunctionName()
372 const DeclContext *DC = OMD->getDeclContext(); in getFunctionName()
387 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getFunctionName()
H A DBodyFarm.cpp897 auto *OMD = Ext->getInstanceMethod(D->getSelector()); in getBody() local
898 if (OMD && !OMD->isImplicit()) in getBody()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp1075 if (OMD->isInstanceMethod()) 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()
1175 if (!OMD->getBody()) in RewriteImplementationDecl()
1178 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
1179 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl()
1188 if (!OMD->getBody()) in RewriteImplementationDecl()
1191 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
[all …]
H A DRewriteModernObjC.cpp915 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod()
1242 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1265 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1272 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1292 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl()
1306 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1352 if (!OMD->getBody()) in RewriteImplementationDecl()
1355 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
1365 if (!OMD->getBody()) in RewriteImplementationDecl()
1368 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprMember.cpp438 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local
439 return OMD; in FindGetterSetterNameDeclFromProtocolList()
463 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local
464 GDecl = OMD; in FindGetterSetterNameDecl()
1523 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local
1535 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
H A DSemaObjCProperty.cpp1440 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1442 if (!OMD) in ActOnPropertyImplDecl()
1443 OMD = RedeclarePropertyAccessor(Context, IC, getterMethod, AtLoc, in ActOnPropertyImplDecl()
1445 PIDecl->setGetterMethodDecl(OMD); in ActOnPropertyImplDecl()
1504 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1506 if (!OMD) in ActOnPropertyImplDecl()
1507 OMD = RedeclarePropertyAccessor(Context, IC, setterMethod, in ActOnPropertyImplDecl()
1509 PIDecl->setSetterMethodDecl(OMD); in ActOnPropertyImplDecl()
H A DSemaExprObjC.cpp1749 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local
1750 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes()
1756 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXType.cpp1122 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in clang_getDeclObjCTypeEncoding() local
1123 encoding = Ctx.getObjCEncodingForMethodDecl(OMD); in clang_getDeclObjCTypeEncoding()

12