From: Aaron Ballman Date: Fri, 3 Jan 2014 02:07:43 +0000 (+0000) Subject: Removing some more unnecessary manual quotes from attribute diagnostics. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa81229216b3b19c0bf51d6e63a2752d4fc6c54d;p=clang Removing some more unnecessary manual quotes from attribute diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198391 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index bb01ffc984..72e88d858d 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2442,7 +2442,7 @@ def warn_objc_implementation_missing_designated_init_override : Warning< def err_objc_attr_not_id : Error< "parameter of %0 attribute must be a single name of an Objective-C %select{class|protocol}1">; def err_objc_cf_bridged_not_interface : Error< - "CF object of type %0 is bridged to '%1', which is not an Objective-C class">; + "CF object of type %0 is bridged to %1, which is not an Objective-C class">; def err_objc_ns_bridged_invalid_cfobject : Error< "ObjectiveC object of type %0 is bridged to %1, which is not valid CF object">; def warn_objc_invalid_bridge : Warning< diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 8b1befe4f8..48881de3ae 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -3283,7 +3283,7 @@ static bool CheckObjCBridgeNSCast(Sema &S, QualType castType, Expr *castExpr) { } } S.Diag(castExpr->getLocStart(), diag::err_objc_cf_bridged_not_interface) - << castExpr->getType() << Parm->getName(); + << castExpr->getType() << Parm; S.Diag(TDNDecl->getLocStart(), diag::note_declared_at); if (Target) S.Diag(Target->getLocStart(), diag::note_declared_at);