[modules] Make sure macros get made visible in the top-level file if we've got
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 30 Jun 2015 21:29:55 +0000 (21:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 30 Jun 2015 21:29:55 +0000 (21:29 +0000)
commit4df6093ca34b36d7af85069bc9258bb2d91269a7
treea87fbe95520ae79599a78a7ebb1f563fce77eb9a
parentb41e87c534f47e1cb821eb5691ae0520d4ac4143
[modules] Make sure macros get made visible in the top-level file if we've got
local submodule visibility enabled; that top-level file might not actually be
the module includes buffer if use of prebuilt modules is disabled.

llvm-svn: 241120
clang/include/clang/Lex/Preprocessor.h
clang/lib/Lex/PPLexerChange.cpp
clang/test/Modules/Inputs/submodule-visibility/a.h
clang/test/Modules/Inputs/submodule-visibility/b.h
clang/test/Modules/submodule-visibility.cpp