summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-11-15 04:24:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-11-15 04:24:58 +0000
commit26297f57634994b4ae47a0774c372d6944265bb2 (patch)
treefe29b29bbc7658920aae2265f3aae688e271b95e /lib/CodeGen/CGExpr.cpp
parentf93ec7608aa79f9aac09304bfd3bc1918caf128f (diff)
downloadclang-26297f57634994b4ae47a0774c372d6944265bb2.tar.gz
clang-26297f57634994b4ae47a0774c372d6944265bb2.tar.bz2
clang-26297f57634994b4ae47a0774c372d6944265bb2.tar.xz
When we hit a #include directive that maps to a module import, emit a token
representing the module import rather than making the module immediately visible. This serves two goals: * It avoids making declarations in the module visible prematurely, if we walk past the #include during a tentative parse, for instance, and * It gives a diagnostic (although, admittedly, not a very nice one) if a header with a corresponding module is included anywhere other than at the top level. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions