Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCGObjC.cpp389 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr() local
390 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext()); in EmitObjCMessageExpr()
393 OMD->getClassInterface(), in EmitObjCMessageExpr()
456 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD, in StartObjCMethod() argument
458 SourceLocation StartLoc = OMD->getLocStart(); in StartObjCMethod()
461 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
464 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod()
466 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod()
467 CGM.SetInternalFunctionAttributes(OMD, Fn, FI); in StartObjCMethod()
469 args.push_back(OMD->getSelfDecl()); in StartObjCMethod()
[all …]
DCGObjCRuntime.h195 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
DCodeGenModule.cpp3330 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local
3331 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl()
3332 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl()
3333 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl()
3338 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl()
3342 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local
3344 if (OMD->getBody()) in EmitTopLevelDecl()
3345 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
DCGDebugInfo.cpp197 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument
200 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName()
201 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
214 if (ImplicitParamDecl *SelfDecl = OMD->getSelfDecl()) { in getObjCMethodName()
220 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName()
2600 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in EmitFunctionStart() local
2601 Name = getObjCMethodName(OMD); in EmitFunctionStart()
DCGObjCGNU.cpp508 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
2588 llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument
2591 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext()); in GenerateMethod()
2594 Selector MethodName = OMD->getSelector(); in GenerateMethod()
2595 bool isClassMethod = !OMD->isInstanceMethod(); in GenerateMethod()
2599 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
DCGObjCMac.cpp902 void GetNameForMethod(const ObjCMethodDecl *OMD,
1031 const ObjCMethodDecl *OMD,
1044 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
3341 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument
3344 GetNameForMethod(OMD, CD, Name); in GenerateMethod()
3348 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
3354 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod()
4759 const ObjCImplementationDecl *OMD, in BuildIvarLayout() argument
4768 const ObjCInterfaceDecl *OI = OMD->getClassInterface(); in BuildIvarLayout()
4789 BuildAggrIvarLayout(OMD, nullptr, nullptr, RecFields, 0, ForStrongLayout, in BuildIvarLayout()
[all …]
DCGDecl.cpp162 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local
163 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
DCodeGenFunction.cpp575 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local
576 Body = OMD->getBody(); in endsWithReturn()
DCodeGenFunction.h1140 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
/external/clang/lib/AST/
DDeclPrinter.cpp931 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument
932 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl()
936 if (!OMD->getReturnType().isNull()) in VisitObjCMethodDecl()
937 Out << '(' << OMD->getASTContext() in VisitObjCMethodDecl()
938 .getUnqualifiedObjCPointerType(OMD->getReturnType()) in VisitObjCMethodDecl()
941 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl()
943 for (const auto *PI : OMD->params()) { in VisitObjCMethodDecl()
952 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl()
955 if (OMD->isVariadic()) in VisitObjCMethodDecl()
958 prettyPrintAttributes(OMD); in VisitObjCMethodDecl()
[all …]
DMangle.cpp143 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
144 mangleObjCMethodName(OMD, Out); in mangleName()
158 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
159 mangleObjCMethodName(OMD, Out); in mangleName()
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.cpp403 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local
404 return OMD; in FindGetterSetterNameDeclFromProtocolList()
427 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local
428 GDecl = OMD; in FindGetterSetterNameDecl()
1447 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local
1449 if (S.DiagnoseUseOfDecl(OMD, MemberLoc)) in LookupMemberExpr()
1462 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
DSemaExprObjC.cpp1313 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local
1314 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes()
1320 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
DSemaCodeComplete.cpp2633 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND)) in CreateCodeCompletionString() local
2634 if (OMD->isPropertyAccessor()) in CreateCodeCompletionString()
2635 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in CreateCodeCompletionString()
DSemaExpr.cpp86 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in HasRedeclarationWithoutAvailabilityInCategory() local
87 if (!OMD) in HasRedeclarationWithoutAvailabilityInCategory()
89 const ObjCInterfaceDecl *OID = OMD->getClassInterface(); in HasRedeclarationWithoutAvailabilityInCategory()
95 Cat->getMethod(OMD->getSelector(), OMD->isInstanceMethod())) in HasRedeclarationWithoutAvailabilityInCategory()
DSemaDeclCXX.cpp1978 const CXXMethodDecl *OMD = *MD->begin_overridden_methods(); in DiagnoseAbsenceOfOverrideControl() local
1979 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp1060 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1065 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1071 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1080 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1086 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1094 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1101 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1121 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl()
1135 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1168 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local
[all …]
DRewriteModernObjC.cpp1255 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1260 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1266 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1275 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1281 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1289 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1296 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1316 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl()
1330 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1373 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local
[all …]
/external/clang/tools/libclang/
DCXType.cpp889 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in clang_getDeclObjCTypeEncoding() local
890 if (Ctx.getObjCEncodingForMethodDecl(OMD, encoding)) in clang_getDeclObjCTypeEncoding()
DCIndex.cpp3538 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND)) in getDeclSpelling() local
3539 return cxstring::createDup(OMD->getSelector().getAsString()); in getDeclSpelling()