Skip to content

Commit 21295bc

Browse files
committed
Document new function
1 parent c6ff124 commit 21295bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/Lex/ModuleMap.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ class ModuleMap {
544544
/// \returns The found or newly-created module.
545545
Module *findOrCreateModule(StringRef Name, Module *Parent, bool IsFramework,
546546
bool IsExplicit);
547+
/// Create new submodule, assuming it does not exist. This function can only
548+
/// be called when it is guaranteed that this submodule does not exist yet.
549+
/// The parameters have same semantics as \c ModuleMap::findOrCreateModule.
547550
Module *createModule(StringRef Name, Module *Parent, bool IsFramework,
548551
bool IsExplicit);
549552

0 commit comments

Comments
 (0)