objective-c: place quotes around named items in a diagnostic.

// rdar://11671080

llvm-svn: 158874
This commit is contained in:
Fariborz Jahanian 2012-06-20 23:33:16 +00:00
parent 51c63e64e3
commit 1501987951
2 changed files with 4 additions and 4 deletions

View File

@ -631,8 +631,8 @@ def warn_auto_synthesizing_protocol_property :Warning<
" declared in a protocol">,
InGroup<DiagGroup<"objc-protocol-property-synthesis">>;
def warn_autosynthesis_property_ivar_match :Warning<
"autosynthesized property %0 will use %select{|synthesized}1 instance variable "
"%2, not existing instance variable %3">,
"autosynthesized property '%0' will use %select{|synthesized}1 instance variable "
"'%2', not existing instance variable '%3'">,
InGroup<DiagGroup<"objc-autosynthesis-property-ivar-name-match">>;
def warn_missing_explicit_synthesis : Warning <
"auto property synthesis is synthesizing property not explicitly synthesized">,

View File

@ -47,7 +47,7 @@
@end
// rdar://11671080
@implementation Test3 // expected-warning {{autosynthesized property uid will use synthesized instance variable _uid, not existing instance variable uid}}
@implementation Test3 // expected-warning {{autosynthesized property 'uid' will use synthesized instance variable '_uid', not existing instance variable 'uid'}}
// Oops, forgot to write @synthesize! will be default synthesized
- (void) myMethod {
self.uid = 0; // Use of the setter
@ -125,5 +125,5 @@ int* _object;
@end
@implementation Test8 @end // expected-warning {{autosynthesized property y will use instance variable _y, not existing instance variable y}}
@implementation Test8 @end // expected-warning {{autosynthesized property 'y' will use instance variable '_y', not existing instance variable 'y'}}