From: Aaron Ballman Date: Fri, 3 Jan 2014 14:06:37 +0000 (+0000) Subject: Removing some more unnecessary manual quotes from diagnostics. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9862565b8466ba9dda03eae5e762fd4a3e14af72;p=clang Removing some more unnecessary manual quotes from diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198416 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 8dafe23a62..f803ecbd52 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -713,11 +713,11 @@ def warn_auto_synthesizing_protocol_property :Warning< InGroup>; def warn_no_autosynthesis_shared_ivar_property : Warning < "auto property synthesis will not synthesize property " - "'%0' because it cannot share an ivar with another synthesized property">, + "%0 because it cannot share an ivar with another synthesized property">, InGroup; def warn_no_autosynthesis_property : Warning< "auto property synthesis will not synthesize property " - "'%0' because it is 'readwrite' but it will be synthesized 'readonly' " + "%0 because it is 'readwrite' but it will be synthesized 'readonly' " "via another property">, InGroup; def warn_autosynthesis_property_ivar_match :Warning< diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index a1d74273d7..9f09575fd4 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -1544,7 +1544,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl* IMPDecl, !IMPDecl->getInstanceMethod(Prop->getSetterName()) && !IDecl->HasUserDeclaredSetterMethod(Prop)) { Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) - << Prop->getIdentifier()->getName(); + << Prop->getIdentifier(); Diag(PropInSuperClass->getLocation(), diag::note_property_declare); } continue; @@ -1553,7 +1553,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl* IMPDecl, IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { if (PID->getPropertyDecl() != Prop) { Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) - << Prop->getIdentifier()->getName(); + << Prop->getIdentifier(); if (!PID->getLocation().isInvalid()) Diag(PID->getLocation(), diag::note_property_synthesize); }