aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/ModuleMap.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-29 18:17:59 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-29 18:17:59 +0000
commit804c3bfee22076f232dddf4839439119cfdee2b6 (patch)
treee3063fa5a6b97cc4f570cbf3e4bf8123b54b21fd /include/clang/Lex/ModuleMap.h
parent7a71524d9b51b01e124719f8e538f2bb85eae07e (diff)
Expose the printing of module maps as part of the ModuleMap::Module
interface. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/ModuleMap.h')
-rw-r--r--include/clang/Lex/ModuleMap.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/clang/Lex/ModuleMap.h b/include/clang/Lex/ModuleMap.h
index f4eb773e70..d38bbe672b 100644
--- a/include/clang/Lex/ModuleMap.h
+++ b/include/clang/Lex/ModuleMap.h
@@ -94,13 +94,20 @@ public:
return false;
}
-
/// \brief Retrieve the full name of this module, including the path from
/// its top-level module.
std::string getFullModuleName() const;
/// \brief Retrieve the name of the top-level module.
+ ///
StringRef getTopLevelModuleName() const;
+
+ /// \brief Print the module map for this module to the given stream.
+ ///
+ void print(llvm::raw_ostream &OS, unsigned Indent = 0) const;
+
+ /// \brief Dump the contents of this module to the given output stream.
+ void dump() const;
};
private: