diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-02 22:29:41 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-02 22:29:41 +0000 |
| commit | 44ebc079b91a9846d40eb092da87c537a6b190f5 (patch) | |
| tree | 3a73b946fb37fb85aa2a13d9c942be6910420692 | |
| parent | 9a26f2986c2c58442d717513e62c14f577fa8e9a (diff) | |
| download | bcm5719-llvm-44ebc079b91a9846d40eb092da87c537a6b190f5.tar.gz bcm5719-llvm-44ebc079b91a9846d40eb092da87c537a6b190f5.zip | |
Removing some manual quotes from this diagnostic, since the AST diagnostics engine knows how to handle NamedDecl objects.
llvm-svn: 198365
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index d8528c00de9..c689e0d6aca 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -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< diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index fd576f3d5ad..493b9be1167 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -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 |

