diff options
author | John McCall <rjmccall@apple.com> | 2010-02-14 01:03:10 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-14 01:03:10 +0000 |
commit | 23e907ab9119ccfdff17b3808a770c5a6707fb95 (patch) | |
tree | e44f61a17c3c6bfc84850c89c1e727da48e558aa /lib/Parse/ParseDecl.cpp | |
parent | 8f7af125c0dddb73dfda2ddb6b5c61d61a15cb15 (diff) |
Improve the diagnostic given when referring to a tag type without a tag (in C)
or that's been hidden by a non-type (in C++).
The ideal C++ diagnostic here would note the hiding declaration, but this
is a good start.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 01156a1e96..8aa69363be 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -733,7 +733,7 @@ bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, if (TagName) { Diag(Loc, diag::err_use_of_tag_name_without_tag) - << Tok.getIdentifierInfo() << TagName + << Tok.getIdentifierInfo() << TagName << getLang().CPlusPlus << CodeModificationHint::CreateInsertion(Tok.getLocation(),TagName); // Parse this as a tag as if the missing tag were present. |