diff options
Diffstat (limited to 'include/clang/Lex/ModuleMap.h')
-rw-r--r-- | include/clang/Lex/ModuleMap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Lex/ModuleMap.h b/include/clang/Lex/ModuleMap.h index 6176ed8c30..85740816d1 100644 --- a/include/clang/Lex/ModuleMap.h +++ b/include/clang/Lex/ModuleMap.h @@ -41,6 +41,10 @@ class ModuleMap { const LangOptions &LangOpts; const TargetInfo *Target; + /// \brief The directory used for Clang-supplied, builtin include headers, + /// such as "stdint.h". + const DirectoryEntry *BuiltinIncludeDir; + /// \brief Language options used to parse the module map itself. /// /// These are always simple C language options. @@ -102,6 +106,12 @@ public: /// \brief Set the target information. void setTarget(const TargetInfo &Target); + /// \brief Set the directory that contains Clang-supplied include + /// files, such as our stdarg.h or tgmath.h. + void setBuiltinIncludeDir(const DirectoryEntry *Dir) { + BuiltinIncludeDir = Dir; + } + /// \brief Retrieve the module that owns the given header file, if any. /// /// \param File The header file that is likely to be included. |