Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCGObjC.cpp396 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr() local
397 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext()); in EmitObjCMessageExpr()
400 OMD->getClassInterface(), in EmitObjCMessageExpr()
463 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD, in StartObjCMethod() argument
468 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
471 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod()
473 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod()
474 CGM.SetInternalFunctionAttributes(OMD, Fn, FI); in StartObjCMethod()
476 args.push_back(OMD->getSelfDecl()); in StartObjCMethod()
477 args.push_back(OMD->getCmdDecl()); in StartObjCMethod()
[all …]
DCGObjCRuntime.h195 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
DCodeGenModule.cpp3165 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local
3166 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl()
3167 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl()
3168 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl()
3173 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl()
3177 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local
3179 if (OMD->getBody()) in EmitTopLevelDecl()
3180 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
DCGDebugInfo.cpp191 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument
194 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName()
195 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
208 if (ImplicitParamDecl* SelfDecl = OMD->getSelfDecl()) { in getObjCMethodName()
214 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName()
2507 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in EmitFunctionStart() local
2508 Name = getObjCMethodName(OMD); in EmitFunctionStart()
DCGObjCGNU.cpp505 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
2581 llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument
2584 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext()); in GenerateMethod()
2587 Selector MethodName = OMD->getSelector(); in GenerateMethod()
2588 bool isClassMethod = !OMD->isInstanceMethod(); in GenerateMethod()
2592 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
DCGObjCMac.cpp909 void GetNameForMethod(const ObjCMethodDecl *OMD,
1037 const ObjCMethodDecl *OMD,
1050 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
3375 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument
3378 GetNameForMethod(OMD, CD, Name); in GenerateMethod()
3382 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
3388 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod()
4802 const ObjCImplementationDecl *OMD, in BuildIvarLayout() argument
4811 const ObjCInterfaceDecl *OI = OMD->getClassInterface(); in BuildIvarLayout()
4832 BuildAggrIvarLayout(OMD, nullptr, nullptr, RecFields, 0, ForStrongLayout, in BuildIvarLayout()
[all …]
DCodeGenFunction.cpp510 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local
511 Body = OMD->getBody(); in endsWithReturn()
DCodeGenFunction.h1078 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
/external/clang/lib/AST/
DDeclPrinter.cpp917 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument
918 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl()
922 if (!OMD->getReturnType().isNull()) in VisitObjCMethodDecl()
923 Out << '(' << OMD->getASTContext() in VisitObjCMethodDecl()
924 .getUnqualifiedObjCPointerType(OMD->getReturnType()) in VisitObjCMethodDecl()
927 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl()
929 for (const auto *PI : OMD->params()) { in VisitObjCMethodDecl()
938 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl()
941 if (OMD->isVariadic()) in VisitObjCMethodDecl()
944 if (OMD->getBody() && !Policy.TerseOutput) { in VisitObjCMethodDecl()
[all …]
DASTContext.cpp465 const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local
466 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl()
467 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl()
470 if (OMD) in getCommentForDecl()
471 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
/external/clang/lib/Sema/
DSemaExprMember.cpp401 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local
402 return OMD; in FindGetterSetterNameDeclFromProtocolList()
425 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local
426 GDecl = OMD; in FindGetterSetterNameDecl()
1430 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local
1432 if (S.DiagnoseUseOfDecl(OMD, MemberLoc)) in LookupMemberExpr()
1445 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
DSemaExprObjC.cpp1311 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local
1312 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes()
1318 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
DSemaCodeComplete.cpp2629 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND)) in CreateCodeCompletionString() local
2630 if (OMD->isPropertyAccessor()) in CreateCodeCompletionString()
2631 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in CreateCodeCompletionString()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp1069 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1074 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1080 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1089 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1095 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1103 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1110 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1130 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl()
1144 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1177 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local
[all …]
DRewriteModernObjC.cpp1267 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1272 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1278 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1287 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1293 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1301 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1308 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1328 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl()
1342 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1385 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local
[all …]
/external/clang/tools/libclang/
DCXType.cpp854 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in clang_getDeclObjCTypeEncoding() local
855 if (Ctx.getObjCEncodingForMethodDecl(OMD, encoding)) in clang_getDeclObjCTypeEncoding()
DCIndex.cpp3351 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND)) in getDeclSpelling() local
3352 return cxstring::createDup(OMD->getSelector().getAsString()); in getDeclSpelling()