]> granicus.if.org Git - clang/commitdiff
No need for the manual quotes and extra getName() call. No functional changes intended.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 26 Dec 2013 15:06:01 +0000 (15:06 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 26 Dec 2013 15:06:01 +0000 (15:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198047 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 71d118a2be96d167971276a8ccd157fdc2c2be6c..df10dc2b0c68048f35dca754589ea9efaaccc451 100644 (file)
@@ -2137,7 +2137,7 @@ def warn_thread_attribute_decl_not_lockable : Warning<
   "with 'lockable' attribute">,
   InGroup<ThreadSafetyAttributes>, DefaultIgnore;
 def warn_thread_attribute_decl_not_pointer : Warning<
-  "'%0' only applies to pointer types; type here is %1">,
+  "%0 only applies to pointer types; type here is %1">,
   InGroup<ThreadSafetyAttributes>, DefaultIgnore;
 def err_attribute_argument_out_of_range : Error<
   "%0 attribute parameter %1 is out of bounds: "
index 72a0ddbe77fce269b62d057845bbbf245f9d9805..bf61f5b986a01d2dff5347d278079ada697347ee 100644 (file)
@@ -396,7 +396,7 @@ static bool threadSafetyCheckIsPointer(Sema &S, const Decl *D,
   }
 
   S.Diag(Attr.getLoc(), diag::warn_thread_attribute_decl_not_pointer)
-    << Attr.getName()->getName() << QT;
+    << Attr.getName() << QT;
   return false;
 }