Lines Matching refs:OM
59 ObjCMethodDecl *OM);
60 bool migrateProperty(ASTContext &Ctx, ObjCContainerDecl *D, ObjCMethodDecl *OM);
61 void migrateNsReturnsInnerPointer(ASTContext &Ctx, ObjCMethodDecl *OM);
64 ObjCMethodDecl *OM,
967 ObjCMethodDecl *OM) {
968 if (OM->getReturnType() == Ctx.getObjCInstanceType())
973 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) {
979 R = SourceRange(OM->getLocStart(), OM->getLocStart());
980 ClassString = OM->isInstanceMethod() ? '-' : '+';
989 ObjCMethodDecl *OM) {
990 ObjCInterfaceDecl *IDecl = OM->getClassInterface();
993 if (TypeSourceInfo *TSInfo = OM->getReturnTypeSourceInfo()) {
1001 R = SourceRange(OM->getLocStart(), OM->getLocStart());
1012 ObjCMethodDecl *OM) {
1014 Selector::getInstTypeMethodFamily(OM->getSelector());
1019 migrateFactoryMethod(Ctx, CDecl, OM);
1028 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton);
1031 if (OM->getReturnType()->isObjCIdType())
1032 ReplaceWithInstancetype(Ctx, *this, OM);
1035 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf);
1038 if (!OM->getReturnType()->isObjCIdType())
1050 migrateFactoryMethod(Ctx, CDecl, OM);
1053 ReplaceWithInstancetype(Ctx, *this, OM);
1260 ObjCMethodDecl *OM) {
1261 if (OM->isImplicit() ||
1262 !OM->isInstanceMethod() ||
1263 OM->hasAttr<ObjCReturnsInnerPointerAttr>())
1266 QualType RT = OM->getReturnType();
1272 commit.insertBefore(OM->getLocEnd(), " NS_RETURNS_INNER_POINTER");
1303 ObjCMethodDecl *OM,
1305 if (OM->isInstanceMethod() ||
1306 OM->getReturnType() == Ctx.getObjCInstanceType() ||
1307 !OM->getReturnType()->isObjCIdType())
1327 IdentifierInfo *MethodIdName = OM->getSelector().getIdentifierInfoForSlot(0);
1360 ReplaceWithClasstype(*this, OM);
1362 ReplaceWithInstancetype(Ctx, *this, OM);