]> granicus.if.org Git - clang/commitdiff
Removing some more unnecessary manual quotes from attribute diagnostics.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 3 Jan 2014 02:07:43 +0000 (02:07 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 3 Jan 2014 02:07:43 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198391 91177308-0d34-0410-b5e6-96231b3b80d8

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

index bb01ffc9842dc9d78f6aad6b19c386ef39cbc58a..72e88d858d01d81829f569fb15cdce7e96d1a11e 100644 (file)
@@ -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<
index 8b1befe4f85b0fee9d0a365d828ba82b0c77ee88..48881de3ae4f28a25a05d8c9a79ede80d7ad25df 100644 (file)
@@ -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);