summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-02 23:42:12 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-02 23:42:12 +0000
commitbcfc7d02293691a1050b76be2c99e008469644f9 (patch)
treec3384c75ffc01d79696207ff4aadb3bf4f237535 /clang/lib/Lex/Preprocessor.cpp
parent9dff9f4c41b2cea20d3a268307424d57583f5890 (diff)
downloadbcm5719-llvm-bcfc7d02293691a1050b76be2c99e008469644f9.tar.gz
bcm5719-llvm-bcfc7d02293691a1050b76be2c99e008469644f9.zip
When we treat an #include or #import as a module import, create an
implicit ImportDecl in the translation unit to record the presence of the import. llvm-svn: 145727
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 6cf34e226af..dea7efc7658 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -599,7 +599,8 @@ void Preprocessor::LexAfterModuleImport(Token &Result) {
// If we have a non-empty module path, load the named module.
if (!ModuleImportPath.empty())
(void)TheModuleLoader.loadModule(ModuleImportLoc, ModuleImportPath,
- Module::MacrosVisible);
+ Module::MacrosVisible,
+ /*IsIncludeDirective=*/false);
}
void Preprocessor::AddCommentHandler(CommentHandler *Handler) {
OpenPOWER on IntegriCloud