]> granicus.if.org Git - clang/commitdiff
objc diagnostic: pass IdentifierInfo* to the diagnostic system
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 29 Jun 2012 18:43:30 +0000 (18:43 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 29 Jun 2012 18:43:30 +0000 (18:43 +0000)
to produce quotes instead of adding qoute to the test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159450 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaObjCProperty.cpp

index 0b3a8ed6987eae3fdea6676c49677d3bf96f983d..805c2dd0886fb3c5e2cb66b866e67aa7d5bedf3d 100644 (file)
@@ -635,8 +635,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">,
index 1794f6618a15a26d9713d2b2d1330e2b96d16648..aace5ec11bf0b32d82697b06eebb1f2c56cb5b22 100644 (file)
@@ -829,8 +829,8 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,
       if (originalIvar) {
         Diag(PropertyDiagLoc, 
              diag::warn_autosynthesis_property_ivar_match)
-        << property->getName() << (Ivar == 0) << PropertyIvar->getName() 
-        << originalIvar->getName();
+        << propertyId << (Ivar == 0) << PropertyIvar 
+        << originalIvar->getIdentifier();
         Diag(property->getLocation(), diag::note_property_declare);
         Diag(originalIvar->getLocation(), diag::note_ivar_decl);
       }