summaryrefslogtreecommitdiff
path: root/test/SemaObjC/property-typecheck-1.m
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-11 19:58:42 +0000
committerChris Lattner <sabre@nondot.org>2009-04-11 19:58:42 +0000
commit3aff919532fd807ed678b9cfa4b7eca7b04adcf9 (patch)
tree247056e26e315ffc9acbdf60058abb24aba82d49 /test/SemaObjC/property-typecheck-1.m
parent273cd4224e13dab6bf738183ace8f93f914ec95c (diff)
downloadclang-3aff919532fd807ed678b9cfa4b7eca7b04adcf9.tar.gz
improve the 'conflicting types' diagnostics to include correct location info, now
that it is plumbed through Sema. On a file from growl, we used to emit: t.mi:107059:1: warning: conflicting types for 'removePluginHandler:forPluginTypes:' - (void) removePluginHandler:(id <GrowlPluginHandler>)handler forPluginTypes:(NSSet *)extensions { ^ t.mi:105280:1: note: previous definition is here - (void) removePluginHandler:(id <NSObject>)handler forPluginTypes:(NSSet *)types; ^ now we produce: t.mi:107059:55: warning: conflicting parameter types in implementation of 'removePluginHandler:forPluginTypes:': 'id<NSObject>' vs 'id<GrowlPluginHandler>' - (void) removePluginHandler:(id <GrowlPluginHandler>)handler forPluginTypes:(NSSet *)extensions { ^ t.mi:105280:45: note: previous definition is here - (void) removePluginHandler:(id <NSObject>)handler forPluginTypes:(NSSet *)types; ^ We still don't have proper loc info for properties, hence the FIXME. rdar://6782494 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/property-typecheck-1.m')
-rw-r--r--test/SemaObjC/property-typecheck-1.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaObjC/property-typecheck-1.m b/test/SemaObjC/property-typecheck-1.m
index 22e5e4af66..1795da8599 100644
--- a/test/SemaObjC/property-typecheck-1.m
+++ b/test/SemaObjC/property-typecheck-1.m
@@ -13,7 +13,7 @@
-(int) moo {
return 0;
}
--(void) setMoo: (float) x { // expected-warning {{conflicting types for 'setMoo:'}}
+-(void) setMoo: (float) x { // expected-warning {{conflicting parameter types in implementation of 'setMoo:': 'int' vs 'float'}}
}
@end