ObjectiveC migrator: rename inferred isXXX property,
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 10 Sep 2013 18:39:32 +0000 (18:39 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 10 Sep 2013 18:39:32 +0000 (18:39 +0000)
with a suitable 'getter' attribute.

llvm-svn: 190420

clang/lib/ARCMigrate/ObjCMT.cpp
clang/test/ARCMT/objcmt-property.m
clang/test/ARCMT/objcmt-property.m.result

index f91741a..efe2e85 100644 (file)
@@ -770,7 +770,7 @@ bool ObjCMigrateASTConsumer::migrateProperty(ASTContext &Ctx,
     // as a 'readonly' property.
     edit::Commit commit(*Editor);
     rewriteToObjCProperty(Method, 0 /*SetterMethod*/, *NSAPIObj, commit,
-                          false /*GetterHasIsPrefix*/);
+                          GetterHasIsPrefix);
     Editor->commit(commit);
     return true;
   }
index 2f655b9..8f9c5f7 100644 (file)
@@ -97,6 +97,7 @@ typedef char BOOL;
 - (id) object;
 + (double) D;
 - (void *)JSObject WEBKIT_OBJC_METHOD_ANNOTATION(AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER);
+- (BOOL)isIgnoringInteractionEvents;
 @end
 
 
index 751b85e..a2cecd5 100644 (file)
@@ -89,7 +89,7 @@ typedef char BOOL;
 @property(nonatomic, readonly) id isAnObject;
 - (void)setAnObject : (id) object;
 
-@property(nonatomic, readonly) BOOL isinValid;
+@property(nonatomic, getter=isinValid, readonly) BOOL inValid;
 - (void) setInValid : (BOOL) arg;
 
 - (void) Nothing;
@@ -97,6 +97,7 @@ typedef char BOOL;
 @property(nonatomic, readonly) id object;
 + (double) D;
 @property(nonatomic, readonly) void * JSObject WEBKIT_OBJC_METHOD_ANNOTATION(AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER);
+@property(nonatomic, getter=isIgnoringInteractionEvents, readonly) BOOL ignoringInteractionEvents;
 @end