r198365 - Removing some manual quotes from this diagnostic, since the AST diagnostics engine knows how to handle NamedDecl objects.

Aaron Ballman aaron at aaronballman.com
Thu Jan 2 14:29:42 PST 2014


Author: aaronballman
Date: Thu Jan  2 16:29:41 2014
New Revision: 198365

URL: http://llvm.org/viewvc/llvm-project?rev=198365&view=rev
Log:
Removing some manual quotes from this diagnostic, since the AST diagnostics engine knows how to handle NamedDecl objects.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=198365&r1=198364&r2=198365&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Jan  2 16:29:41 2014
@@ -1967,7 +1967,7 @@ def err_attribute_aligned_not_power_of_t
 def err_attribute_aligned_greater_than_8192 : Error<
   "requested alignment must be 8192 bytes or smaller">;
 def warn_redeclaration_without_attribute_prev_attribute_ignored : Warning<
-  "'%0' redeclared without %1 attribute: previous %1 ignored">;
+  "%0 redeclared without %1 attribute: previous %1 ignored">;
 def warn_attribute_ignored : Warning<"%0 attribute ignored">,
   InGroup<IgnoredAttributes>;
 def warn_attribute_after_definition_ignored : Warning<

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=198365&r1=198364&r2=198365&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Jan  2 16:29:41 2014
@@ -9687,7 +9687,7 @@ Decl *Sema::ActOnStartOfFunctionDef(Scop
       // emitted.
       Diag(FD->getLocation(),
            diag::warn_redeclaration_without_attribute_prev_attribute_ignored)
-        << FD->getName() << DA;
+        << FD << DA;
     }
   }
   // We want to attach documentation to original Decl (which might be





More information about the cfe-commits mailing list