diff options
Diffstat (limited to 'contrib/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h')
-rw-r--r-- | contrib/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/contrib/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h b/contrib/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h index 5f4812626224..93d674e44003 100644 --- a/contrib/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h +++ b/contrib/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h @@ -31,8 +31,6 @@ class MemoryBuffer; namespace clang { -class DirectoryEntry; -class FileEntry; class FileManager; class IdentifierIterator; class PCHContainerOperations; @@ -69,20 +67,20 @@ class GlobalModuleIndex { /// Information about a given module file. struct ModuleInfo { - ModuleInfo() : File(), Size(), ModTime() { } + ModuleInfo() = default; /// The module file, once it has been resolved. - ModuleFile *File; + ModuleFile *File = nullptr; /// The module file name. std::string FileName; /// Size of the module file at the time the global index was built. - off_t Size; + off_t Size = 0; /// Modification time of the module file at the time the global /// index was built. - time_t ModTime; + time_t ModTime = 0; /// The module IDs on which this module directly depends. /// FIXME: We don't really need a vector here. @@ -138,12 +136,6 @@ public: /// The caller accepts ownership of the returned object. IdentifierIterator *createIdentifierIterator() const; - /// Retrieve the set of modules that have up-to-date indexes. - /// - /// \param ModuleFiles Will be populated with the set of module files that - /// have been indexed. - void getKnownModules(llvm::SmallVectorImpl<ModuleFile *> &ModuleFiles); - /// Retrieve the set of module files on which the given module file /// directly depends. void getModuleDependencies(ModuleFile *File, |