Lines Matching defs:MDecl
337 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
340 if (!MDecl)
342 if (MDecl->isInstanceMethod())
343 AddInstanceMethodToGlobalPool(MDecl, true);
345 AddFactoryMethodToGlobalPool(MDecl, true);
373 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
379 if (!MDecl)
382 QualType ResultType = MDecl->getReturnType();
384 !MDecl->isInvalidDecl() &&
385 SemaRef.RequireCompleteType(MDecl->getLocation(), ResultType,
387 MDecl->setInvalidDecl();
390 SemaRef.PushDeclContext(FnBodyScope, MDecl);
397 MDecl->createImplicitParams(Context, MDecl->getClassInterface());
399 SemaRef.PushOnScopeChains(MDecl->getSelfDecl(), FnBodyScope);
400 SemaRef.PushOnScopeChains(MDecl->getCmdDecl(), FnBodyScope);
403 SemaRef.CheckParmsForFunctionDef(MDecl->parameters(),
407 for (auto *Param : MDecl->parameters()) {
419 switch (MDecl->getMethodFamily()) {
424 Diag(MDecl->getLocation(), diag::err_arc_illegal_method_def)
425 << 0 << MDecl->getSelector();
445 if (ObjCInterfaceDecl *IC = MDecl->getClassInterface()) {
447 IC->lookupMethod(MDecl->getSelector(), MDecl->isInstanceMethod());
451 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext());
467 DiagnoseObjCImplementedDeprecations(SemaRef, IMD, MDecl->getLocation());
470 if (MDecl->getMethodFamily() == OMF_init) {
471 if (MDecl->isDesignatedInitializerForTheInterface()) {
486 ObjCMethodFamily Family = MDecl->getMethodFamily();
498 SuperClass->lookupMethod(MDecl->getSelector(),
499 MDecl->isInstanceMethod());