From: Aaron Ballman Date: Thu, 26 Dec 2013 15:06:01 +0000 (+0000) Subject: No need for the manual quotes and extra getName() call. No functional changes intended. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fdbcee1820da0dd9a12e7e85b116611409b55c8;p=clang No need for the manual quotes and extra getName() call. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198047 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 71d118a2be..df10dc2b0c 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2137,7 +2137,7 @@ def warn_thread_attribute_decl_not_lockable : Warning< "with 'lockable' attribute">, InGroup, 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, DefaultIgnore; def err_attribute_argument_out_of_range : Error< "%0 attribute parameter %1 is out of bounds: " diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 72a0ddbe77..bf61f5b986 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -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; }