aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/Module.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-05 16:33:54 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-05 16:33:54 +0000
commit55988680ece66b8e505ee136b35e74fcb1173aee (patch)
tree98b942dc721f88d21eeda306df4a7af70a04db12 /include/clang/Basic/Module.h
parent5460ff35ab748860f05aeea4685cd195153dca66 (diff)
When writing a module file, keep track of the set of (sub)modules that
it imports, establishing dependencies at the (sub)module granularity. This is not a user-visible change (yet). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Module.h')
-rw-r--r--include/clang/Basic/Module.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h
index 43edcfacec..422449b6bb 100644
--- a/include/clang/Basic/Module.h
+++ b/include/clang/Basic/Module.h
@@ -78,6 +78,10 @@ public:
///\ brief The visibility of names within this particular module.
NameVisibilityKind NameVisibility;
+
+ /// \brief The set of modules imported by this module, and on which this
+ /// module depends.
+ llvm::SmallVector<Module *, 2> Imports;
/// \brief Describes an exported module.
///
@@ -89,7 +93,7 @@ public:
llvm::SmallVector<ExportDecl, 2> Exports;
/// \brief Describes an exported module that has not yet been resolved
- /// (perhaps because the module it refers to has not yet been loaded).
+ /// (perhaps because tASThe module it refers to has not yet been loaded).
struct UnresolvedExportDecl {
/// \brief The location of the 'export' keyword in the module map file.
SourceLocation ExportLoc;