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 | a114d828a0e0123a2f2661e914a5212da0f684f5 (patch) | |
tree | 53e6116503031b783a22c1f430270a412a19fb7d | |
parent | c78ff27813288b30ee566477705353ae660fd577 (diff) |
objective-c: place quotes around named items in a diagnostic.
// rdar://11671080
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158874 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 4 | ||||
-rw-r--r-- | test/SemaObjC/default-synthesize-2.m | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 1b26b7b1a7..a7582a0d28 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/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/test/SemaObjC/default-synthesize-2.m b/test/SemaObjC/default-synthesize-2.m index ec298f5bf5..3756413bd8 100644 --- a/test/SemaObjC/default-synthesize-2.m +++ b/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'}} |