Lines Matching refs:OM

58                                  ObjCMethodDecl *OM);
59 bool migrateProperty(ASTContext &Ctx, ObjCContainerDecl *D, ObjCMethodDecl *OM);
60 void migrateNsReturnsInnerPointer(ASTContext &Ctx, ObjCMethodDecl *OM);
63 ObjCMethodDecl *OM,
968 ObjCMethodDecl *OM) { in ReplaceWithInstancetype() argument
969 if (OM->getReturnType() == Ctx.getObjCInstanceType()) in ReplaceWithInstancetype()
974 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) { in ReplaceWithInstancetype()
980 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc()); in ReplaceWithInstancetype()
981 ClassString = OM->isInstanceMethod() ? '-' : '+'; in ReplaceWithInstancetype()
990 ObjCMethodDecl *OM) { in ReplaceWithClasstype() argument
991 ObjCInterfaceDecl *IDecl = OM->getClassInterface(); in ReplaceWithClasstype()
994 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) { in ReplaceWithClasstype()
1002 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc()); in ReplaceWithClasstype()
1013 ObjCMethodDecl *OM) { in migrateMethodInstanceType() argument
1015 Selector::getInstTypeMethodFamily(OM->getSelector()); in migrateMethodInstanceType()
1020 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType()
1029 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton); in migrateMethodInstanceType()
1032 if (OM->getReturnType()->isObjCIdType()) in migrateMethodInstanceType()
1033 ReplaceWithInstancetype(Ctx, *this, OM); in migrateMethodInstanceType()
1036 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf); in migrateMethodInstanceType()
1039 if (!OM->getReturnType()->isObjCIdType()) in migrateMethodInstanceType()
1051 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType()
1054 ReplaceWithInstancetype(Ctx, *this, OM); in migrateMethodInstanceType()
1261 ObjCMethodDecl *OM) { in migrateNsReturnsInnerPointer() argument
1262 if (OM->isImplicit() || in migrateNsReturnsInnerPointer()
1263 !OM->isInstanceMethod() || in migrateNsReturnsInnerPointer()
1264 OM->hasAttr<ObjCReturnsInnerPointerAttr>()) in migrateNsReturnsInnerPointer()
1267 QualType RT = OM->getReturnType(); in migrateNsReturnsInnerPointer()
1273 commit.insertBefore(OM->getEndLoc(), " NS_RETURNS_INNER_POINTER"); in migrateNsReturnsInnerPointer()
1304 ObjCMethodDecl *OM, in migrateFactoryMethod() argument
1306 if (OM->isInstanceMethod() || in migrateFactoryMethod()
1307 OM->getReturnType() == Ctx.getObjCInstanceType() || in migrateFactoryMethod()
1308 !OM->getReturnType()->isObjCIdType()) in migrateFactoryMethod()
1328 IdentifierInfo *MethodIdName = OM->getSelector().getIdentifierInfoForSlot(0); in migrateFactoryMethod()
1361 ReplaceWithClasstype(*this, OM); in migrateFactoryMethod()
1363 ReplaceWithInstancetype(Ctx, *this, OM); in migrateFactoryMethod()