Lines Matching defs:OM
58 ObjCMethodDecl *OM);
59 bool migrateProperty(ASTContext &Ctx, ObjCContainerDecl *D, ObjCMethodDecl *OM);
60 void migrateNsReturnsInnerPointer(ASTContext &Ctx, ObjCMethodDecl *OM);
63 ObjCMethodDecl *OM,
954 ObjCMethodDecl *OM) {
955 if (OM->getReturnType() == Ctx.getObjCInstanceType())
960 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) {
966 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc());
967 ClassString = OM->isInstanceMethod() ? '-' : '+';
976 ObjCMethodDecl *OM) {
977 ObjCInterfaceDecl *IDecl = OM->getClassInterface();
980 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) {
988 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc());
999 ObjCMethodDecl *OM) {
1001 Selector::getInstTypeMethodFamily(OM->getSelector());
1006 migrateFactoryMethod(Ctx, CDecl, OM);
1015 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton);
1018 if (OM->getReturnType()->isObjCIdType())
1019 ReplaceWithInstancetype(Ctx, *this, OM);
1022 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf);
1025 if (!OM->getReturnType()->isObjCIdType())
1037 migrateFactoryMethod(Ctx, CDecl, OM);
1040 ReplaceWithInstancetype(Ctx, *this, OM);
1247 ObjCMethodDecl *OM) {
1248 if (OM->isImplicit() ||
1249 !OM->isInstanceMethod() ||
1250 OM->hasAttr<ObjCReturnsInnerPointerAttr>())
1253 QualType RT = OM->getReturnType();
1259 commit.insertBefore(OM->getEndLoc(), " NS_RETURNS_INNER_POINTER");
1290 ObjCMethodDecl *OM,
1292 if (OM->isInstanceMethod() ||
1293 OM->getReturnType() == Ctx.getObjCInstanceType() ||
1294 !OM->getReturnType()->isObjCIdType())
1315 OM->getSelector().getIdentifierInfoForSlot(0);
1348 ReplaceWithClasstype(*this, OM);
1350 ReplaceWithInstancetype(Ctx, *this, OM);