diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-20 23:33:16 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-20 23:33:16 +0000 |
commit | 15019879511d98b8c489c857eba110b85f7b1a8c (patch) | |
tree | 7515b70d8c3b0099400103c70cef080ea2d859ad | |
parent | 51c63e64e3f29462c16f82094fe5b4198ee74c17 (diff) | |
download | bcm5719-llvm-15019879511d98b8c489c857eba110b85f7b1a8c.tar.gz bcm5719-llvm-15019879511d98b8c489c857eba110b85f7b1a8c.zip |
objective-c: place quotes around named items in a diagnostic.
// rdar://11671080
llvm-svn: 158874
-rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 4 | ||||
-rw-r--r-- | clang/test/SemaObjC/default-synthesize-2.m | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 1b26b7b1a74..a7582a0d28e 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -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">, diff --git a/clang/test/SemaObjC/default-synthesize-2.m b/clang/test/SemaObjC/default-synthesize-2.m index ec298f5bf5a..3756413bd83 100644 --- a/clang/test/SemaObjC/default-synthesize-2.m +++ b/clang/test/SemaObjC/default-synthesize-2.m @@ -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'}} |