| /openbsd/src/gnu/llvm/clang/lib/CodeGen/ |
| 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 …]
|
| D | CGObjCRuntime.h | 240 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 246 const ObjCMethodDecl *OMD,
|
| D | CGObjCGNU.cpp | 600 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() 2919 Method.add(MakeConstantString(Context.getObjCEncodingForMethodDecl(OMD, true))); in GenerateMethodList() [all …]
|
| D | CGObjCMac.cpp | 1078 const ObjCMethodDecl *OMD, 1097 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 1100 llvm::Function *GenerateDirectMethod(const ObjCMethodDecl *OMD, 1104 const ObjCMethodDecl *OMD, 3961 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument 3965 if (OMD->isDirectMethod()) { in GenerateMethod() 3966 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod() 3968 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod() 3972 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod() 3978 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod() [all …]
|
| D | CGObjCRuntime.cpp | 474 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument 478 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
|
| D | CodeGenFunction.cpp | 641 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local 642 Body = OMD->getBody(); in endsWithReturn() 788 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local 789 IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction() 790 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction() 791 OMD->getMethodFamily() == OMF_initialize || in StartFunction() 792 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
|
| D | CGDebugInfo.cpp | 266 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument 269 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName() 270 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 285 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName() 3947 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local 3948 if (!OMD) in getObjCMethodDeclaration() 3951 if (CGM.getCodeGenOpts().DwarfVersion < 5 && !OMD->isDirectMethod()) in getObjCMethodDeclaration() 3954 if (OMD->isDirectMethod()) in getObjCMethodDeclaration() 3961 ID = OMD->getClassInterface(); in getObjCMethodDeclaration() 3970 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration() [all …]
|
| D | CodeGenModule.cpp | 6406 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local 6407 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl() 6408 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl() 6409 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl() 6414 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl() 6418 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local 6420 if (OMD->getBody()) in EmitTopLevelDecl() 6421 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
|
| D | CGDecl.cpp | 235 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local 236 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
|
| D | CodeGenFunction.h | 501 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {} 2101 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
|
| /openbsd/src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| D | ReduceDIMetadata.cpp | 59 if (MDNode *OMD = dyn_cast_or_null<MDNode>(Op)) in identifyUninterestingMDNodes() local 60 ToLook.push_back(OMD); in identifyUninterestingMDNodes()
|
| /openbsd/src/gnu/llvm/clang/lib/AST/ |
| D | DeclPrinter.cpp | 1289 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument 1290 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl() 1294 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl() 1295 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl() 1296 OMD->getReturnType()); in VisitObjCMethodDecl() 1299 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl() 1301 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl() 1307 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl() 1314 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl() 1317 if (OMD->isVariadic()) in VisitObjCMethodDecl() [all …]
|
| D | Mangle.cpp | 189 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()
|
| D | ASTContext.cpp | 585 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local 586 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl() 587 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() 590 if (OMD) in getCommentForDecl() 591 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
|
| /openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| D | MIGChecker.cpp | 177 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local 178 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
|
| D | LocalizationChecker.cpp | 849 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local 850 auto formals = OMD->parameters(); in checkPreObjCMessage()
|
| /openbsd/src/gnu/llvm/clang/lib/Analysis/ |
| D | 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()
|
| D | BodyFarm.cpp | 898 auto *OMD = Ext->getInstanceMethod(D->getSelector()); in getBody() local 899 if (OMD && !OMD->isImplicit()) in getBody()
|
| /openbsd/src/gnu/llvm/clang/lib/Frontend/Rewrite/ |
| D | 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 …]
|
| D | RewriteModernObjC.cpp | 913 auto *OMD = IMP->getInstanceMethod(getter ? PD->getGetterName() in mustSynthesizeSetterGetterMethod() local 915 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod() 1231 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument 1236 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl() 1242 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl() 1251 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl() 1257 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl() 1265 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl() 1272 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl() 1292 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() [all …]
|
| /openbsd/src/gnu/llvm/clang/lib/Sema/ |
| D | SemaExprMember.cpp | 438 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()
|
| D | SemaObjCProperty.cpp | 1440 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()
|
| D | SemaExprObjC.cpp | 1747 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local 1748 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes() 1754 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
|
| /openbsd/src/gnu/llvm/clang/tools/libclang/ |
| D | CXType.cpp | 1132 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in clang_getDeclObjCTypeEncoding() local 1133 encoding = Ctx.getObjCEncodingForMethodDecl(OMD); in clang_getDeclObjCTypeEncoding()
|
| D | CIndex.cpp | 640 if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in VisitDeclContext() local 641 if (OMD->isSynthesizedAccessorStub()) in VisitDeclContext() 4830 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND)) 4831 return cxstring::createDup(OMD->getSelector().getAsString());
|