[modules] Use the "redundant #include" diagnostic rather than the "module
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 6 Dec 2016 00:12:39 +0000 (00:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 6 Dec 2016 00:12:39 +0000 (00:12 +0000)
commitb9d0193e5906336d555e033c126dcc5f5ae6b0e3
treed1b27aabd2bae396ed8cc2e51be1248cf836a1ec
parent8e27c2b970f065033cc8c9eeecda480049d1edb5
[modules] Use the "redundant #include" diagnostic rather than the "module
import can't appear here" diagnostic if an already-visible module is textually
entered (because we have the module map but not the AST file) within a
function/namespace scope.

llvm-svn: 288737
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/Parser.cpp
clang/lib/Sema/SemaDecl.cpp
clang/test/Modules/Inputs/cxx-header.h