Lines Matching defs:OM
59 ObjCMethodDecl *OM);
60 bool migrateProperty(ASTContext &Ctx, ObjCContainerDecl *D, ObjCMethodDecl *OM);
61 void migrateNsReturnsInnerPointer(ASTContext &Ctx, ObjCMethodDecl *OM);
64 ObjCMethodDecl *OM,
955 ObjCMethodDecl *OM) {
956 if (OM->getReturnType() == Ctx.getObjCInstanceType())
961 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) {
967 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc());
968 ClassString = OM->isInstanceMethod() ? '-' : '+';
977 ObjCMethodDecl *OM) {
978 ObjCInterfaceDecl *IDecl = OM->getClassInterface();
981 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) {
989 R = SourceRange(OM->getBeginLoc(), OM->getBeginLoc());
1000 ObjCMethodDecl *OM) {
1002 Selector::getInstTypeMethodFamily(OM->getSelector());
1007 migrateFactoryMethod(Ctx, CDecl, OM);
1016 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton);
1019 if (OM->getReturnType()->isObjCIdType())
1020 ReplaceWithInstancetype(Ctx, *this, OM);
1023 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf);
1026 if (!OM->getReturnType()->isObjCIdType())
1038 migrateFactoryMethod(Ctx, CDecl, OM);
1041 ReplaceWithInstancetype(Ctx, *this, OM);
1248 ObjCMethodDecl *OM) {
1249 if (OM->isImplicit() ||
1250 !OM->isInstanceMethod() ||
1251 OM->hasAttr<ObjCReturnsInnerPointerAttr>())
1254 QualType RT = OM->getReturnType();
1260 commit.insertBefore(OM->getEndLoc(), " NS_RETURNS_INNER_POINTER");
1291 ObjCMethodDecl *OM,
1293 if (OM->isInstanceMethod() ||
1294 OM->getReturnType() == Ctx.getObjCInstanceType() ||
1295 !OM->getReturnType()->isObjCIdType())
1316 OM->getSelector().getIdentifierInfoForSlot(0);
1349 ReplaceWithClasstype(*this, OM);
1351 ReplaceWithInstancetype(Ctx, *this, OM);