]> granicus.if.org Git - clang/commitdiff
Removing some manual quotes from this diagnostic, since the AST diagnostics engine...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 2 Jan 2014 22:29:41 +0000 (22:29 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 2 Jan 2014 22:29:41 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198365 91177308-0d34-0410-b5e6-96231b3b80d8

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

index d8528c00de988c560c6d3504bb756714501ee8b0..c689e0d6aca9a20cbab747a774fbe0fef4c5b7ed 100644 (file)
@@ -1967,7 +1967,7 @@ def err_attribute_aligned_not_power_of_two : Error<
 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<
index fd576f3d5addc739a94c3d2fa2c9b27bc117f942..493b9be11670bd5142f0c8a3ad4dcc0381f19094 100644 (file)
@@ -9687,7 +9687,7 @@ Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D) {
       // 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