diff options
author | Richard Trieu <rtrieu@google.com> | 2018-03-28 04:16:13 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-03-28 04:16:13 +0000 |
commit | cab3257e74b0f7c1c6255c8e9f10203d70b37b14 (patch) | |
tree | 3f06cf1ad9037da04588640d9652d29e4a63e401 /lib/Parse/ParseDeclCXX.cpp | |
parent | 7d573824c60fe0523e6a84526343d8065234ac5e (diff) |
Fix some handling of AST nodes with diagnostics.
The diagnostic system for Clang can already handle many AST nodes. Instead
of converting them to strings first, just hand the AST node directly to
the diagnostic system and let it handle the output. Minor changes in some
diagnostic output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | lib/Parse/ParseDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index 207047b03c..0c789c9b1c 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -4036,7 +4036,7 @@ void Parser::ParseCXX11AttributeSpecifier(ParsedAttributes &attrs, if (TryConsumeToken(tok::ellipsis)) Diag(Tok, diag::err_cxx11_attribute_forbids_ellipsis) - << AttrName->getName(); + << AttrName; } if (ExpectAndConsume(tok::r_square)) |