[c++2a] Improve diagnostic for use of declaration from another TU's
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 18 Apr 2019 00:56:58 +0000 (00:56 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 18 Apr 2019 00:56:58 +0000 (00:56 +0000)
commite867e98314ef5546f4eb2c9c6249f24b739f38ac
treee009927c59d59ade11cc940167b75ffeb046d066
parent68be3229879ec974678dcf507965d2d78b7c9cf4
[c++2a] Improve diagnostic for use of declaration from another TU's
global module fragment.

We know that the declaration in question should have been introduced by
a '#include', so try to figure out which one and suggest it. Don't
suggest importing the global module fragment itself!

llvm-svn: 358631
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Lex/PPDirectives.cpp
clang/lib/Sema/SemaLookup.cpp
clang/test/CXX/basic/basic.scope/basic.scope.namespace/p2.cpp [new file with mode: 0644]