diff options
Diffstat (limited to 'include/clang/Basic/Module.h')
-rw-r--r-- | include/clang/Basic/Module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h index 0f2a9a7b3d..aef2db0fed 100644 --- a/include/clang/Basic/Module.h +++ b/include/clang/Basic/Module.h @@ -194,6 +194,12 @@ public: return Umbrella.dyn_cast<const FileEntry *>(); } + /// \brief Determine whether this module has an umbrella directory that is + /// not based on an umbrella header. + bool hasUmbrellaDir() const { + return Umbrella && Umbrella.is<const DirectoryEntry *>(); + } + /// \brief Print the module map for this module to the given stream. /// void print(llvm::raw_ostream &OS, unsigned Indent = 0) const; |