ObjectiveC migrator: rename inferred isXXX property,

with a suitable 'getter' attribute.

llvm-svn: 190420
This commit is contained in:
Fariborz Jahanian 2013-09-10 18:39:32 +00:00
parent bac9d13647
commit c02bfb9a85
3 changed files with 4 additions and 2 deletions

View 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;
}

View 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

View 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