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,
957 ObjCMethodDecl *OM) { in ReplaceWithInstancetype() argument
958 if (OM->getReturnType() == Ctx.getObjCInstanceType()) in ReplaceWithInstancetype()
963 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) { in ReplaceWithInstancetype()
969 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc()); in ReplaceWithInstancetype()
970 ClassString = OM->isInstanceMethod() ? '-' : '+'; in ReplaceWithInstancetype()
979 ObjCMethodDecl *OM) { in ReplaceWithClasstype() argument
980 ObjCInterfaceDecl *IDecl = OM->getClassInterface(); in ReplaceWithClasstype()
983 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) { in ReplaceWithClasstype()
991 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc()); in ReplaceWithClasstype()
1002 ObjCMethodDecl *OM) { in migrateMethodInstanceType() argument
1004 Selector::getInstTypeMethodFamily(OM->getSelector()); in migrateMethodInstanceType()
1009 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType()
1018 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton); in migrateMethodInstanceType()
1021 if (OM->getReturnType()->isObjCIdType()) in migrateMethodInstanceType()
1022 ReplaceWithInstancetype(Ctx, *this, OM); in migrateMethodInstanceType()
1025 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf); in migrateMethodInstanceType()
1028 if (!OM->getReturnType()->isObjCIdType()) in migrateMethodInstanceType()
1040 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType()
1043 ReplaceWithInstancetype(Ctx, *this, OM); in migrateMethodInstanceType()
1250 ObjCMethodDecl *OM) { in migrateNsReturnsInnerPointer() argument
1251 if (OM->isImplicit() || in migrateNsReturnsInnerPointer()
1252 !OM->isInstanceMethod() || in migrateNsReturnsInnerPointer()
1253 OM->hasAttr<ObjCReturnsInnerPointerAttr>()) in migrateNsReturnsInnerPointer()
1256 QualType RT = OM->getReturnType(); in migrateNsReturnsInnerPointer()
1262 commit.insertBefore(OM->getEndLoc(), " NS_RETURNS_INNER_POINTER"); in migrateNsReturnsInnerPointer()
1293 ObjCMethodDecl *OM, in migrateFactoryMethod() argument
1295 if (OM->isInstanceMethod() || in migrateFactoryMethod()
1296 OM->getReturnType() == Ctx.getObjCInstanceType() || in migrateFactoryMethod()
1297 !OM->getReturnType()->isObjCIdType()) in migrateFactoryMethod()
1317 IdentifierInfo *MethodIdName = OM->getSelector().getIdentifierInfoForSlot(0); in migrateFactoryMethod()
1350 ReplaceWithClasstype(*this, OM); in migrateFactoryMethod()
1352 ReplaceWithInstancetype(Ctx, *this, OM); in migrateFactoryMethod()