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

llvm-svn: 198365
This commit is contained in:
Aaron Ballman 2014-01-02 22:29:41 +00:00
parent 9a26f2986c
commit 44ebc079b9
2 changed files with 2 additions and 2 deletions

View 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<

View 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