]> granicus.if.org Git - clang/commit
Improve the diagnostic when a new declaration conflicts with a using shadow
authorJohn McCall <rjmccall@apple.com>
Thu, 10 Dec 2009 19:51:03 +0000 (19:51 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 10 Dec 2009 19:51:03 +0000 (19:51 +0000)
commit41ce66f8e20159d8bd39fff54ae01608da06c294
tree23bccc6fd7431f44a8ca1079429956decbdd9782
parenteebc4750fd66be9e395ab3fc757a067e050a9677
Improve the diagnostic when a new declaration conflicts with a using shadow
declaration.  Rename note_using_decl to note_using, which is possibly less confusing.
Add a test for non-class-scope using decl collisions and be sure to note the case
we can't diagnose yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91057 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p11.cpp [new file with mode: 0644]