Skip to content

Commit 23915fe

Browse files
[Serialization] Modernize ModuleInfo (NFC)
1 parent d222b69 commit 23915fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/Serialization/GlobalModuleIndex.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,20 @@ class GlobalModuleIndex {
6767

6868
/// Information about a given module file.
6969
struct ModuleInfo {
70-
ModuleInfo() : File(), Size(), ModTime() { }
70+
ModuleInfo() = default;
7171

7272
/// The module file, once it has been resolved.
73-
ModuleFile *File;
73+
ModuleFile *File = nullptr;
7474

7575
/// The module file name.
7676
std::string FileName;
7777

7878
/// Size of the module file at the time the global index was built.
79-
off_t Size;
79+
off_t Size = 0;
8080

8181
/// Modification time of the module file at the time the global
8282
/// index was built.
83-
time_t ModTime;
83+
time_t ModTime = 0;
8484

8585
/// The module IDs on which this module directly depends.
8686
/// FIXME: We don't really need a vector here.

0 commit comments

Comments
 (0)