/external/clang/lib/CodeGen/ |
D | CGObjC.cpp | 389 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 …]
|
D | CGObjCRuntime.h | 195 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
|
D | CodeGenModule.cpp | 3330 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()
|
D | CGDebugInfo.cpp | 197 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()
|
D | CGObjCGNU.cpp | 508 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()
|
D | CGObjCMac.cpp | 902 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 …]
|
D | CGDecl.cpp | 162 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local 163 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
|
D | CodeGenFunction.cpp | 575 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local 576 Body = OMD->getBody(); in endsWithReturn()
|
D | CodeGenFunction.h | 1140 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
|
/external/clang/lib/AST/ |
D | DeclPrinter.cpp | 931 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 …]
|
D | Mangle.cpp | 143 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()
|
D | ASTContext.cpp | 465 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/ |
D | SemaExprMember.cpp | 403 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()
|
D | SemaExprObjC.cpp | 1313 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local 1314 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes() 1320 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
|
D | SemaCodeComplete.cpp | 2633 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()
|
D | SemaExpr.cpp | 86 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()
|
D | SemaDeclCXX.cpp | 1978 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/ |
D | RewriteObjC.cpp | 1060 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 …]
|
D | RewriteModernObjC.cpp | 1255 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/ |
D | CXType.cpp | 889 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in clang_getDeclObjCTypeEncoding() local 890 if (Ctx.getObjCEncodingForMethodDecl(OMD, encoding)) in clang_getDeclObjCTypeEncoding()
|
D | CIndex.cpp | 3538 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND)) in getDeclSpelling() local 3539 return cxstring::createDup(OMD->getSelector().getAsString()); in getDeclSpelling()
|