Lines Matching refs:MethodDecl
71 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated);
81 const ObjCMethodDecl *MethodDecl);
1581 const ObjCMethodDecl *MethodDecl, in AddCFAnnotations() argument
1595 ObjCMethodFamily OMF = MethodDecl->getMethodFamily(); in AddCFAnnotations()
1613 commit.insertBefore(MethodDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1619 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in AddCFAnnotations()
1620 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations()
1634 const ObjCMethodDecl *MethodDecl) { in migrateAddMethodAnnotation() argument
1635 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation()
1638 CallEffects CE = CallEffects::getEffect(MethodDecl); in migrateAddMethodAnnotation()
1639 bool MethodIsReturnAnnotated = (MethodDecl->hasAttr<CFReturnsRetainedAttr>() || in migrateAddMethodAnnotation()
1640 MethodDecl->hasAttr<CFReturnsNotRetainedAttr>() || in migrateAddMethodAnnotation()
1641 MethodDecl->hasAttr<NSReturnsRetainedAttr>() || in migrateAddMethodAnnotation()
1642 MethodDecl->hasAttr<NSReturnsNotRetainedAttr>() || in migrateAddMethodAnnotation()
1643 MethodDecl->hasAttr<NSReturnsAutoreleasedAttr>()); in migrateAddMethodAnnotation()
1646 !MethodDecl->hasAttr<NSConsumesSelfAttr>() && in migrateAddMethodAnnotation()
1647 MethodDecl->getMethodFamily() != OMF_init && in migrateAddMethodAnnotation()
1648 MethodDecl->getMethodFamily() != OMF_release && in migrateAddMethodAnnotation()
1651 commit.insertBefore(MethodDecl->getLocEnd(), " NS_CONSUMES_SELF"); in migrateAddMethodAnnotation()
1657 (MethodDecl->param_begin() == MethodDecl->param_end())) in migrateAddMethodAnnotation()
1665 AddCFAnnotations(Ctx, CE, MethodDecl, false); in migrateAddMethodAnnotation()
1667 } else if (!AuditedType(MethodDecl->getReturnType())) in migrateAddMethodAnnotation()
1675 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in migrateAddMethodAnnotation()
1676 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in migrateAddMethodAnnotation()
1681 AddCFAnnotations(Ctx, CE, MethodDecl, MethodIsReturnAnnotated); in migrateAddMethodAnnotation()