Author: Kazu Hirata Date: 2023-09-05T00:22:51-07:00 New Revision: 23915fe3015d3601c1b50d0ecfb8bf43c2fb03f4
URL: https://github.com/llvm/llvm-project/commit/23915fe3015d3601c1b50d0ecfb8bf43c2fb03f4 DIFF: https://github.com/llvm/llvm-project/commit/23915fe3015d3601c1b50d0ecfb8bf43c2fb03f4.diff LOG: [Serialization] Modernize ModuleInfo (NFC) Added: Modified: clang/include/clang/Serialization/GlobalModuleIndex.h Removed: ################################################################################ diff --git a/clang/include/clang/Serialization/GlobalModuleIndex.h b/clang/include/clang/Serialization/GlobalModuleIndex.h index d82e0dd294b901..93d674e4400345 100644 --- a/clang/include/clang/Serialization/GlobalModuleIndex.h +++ b/clang/include/clang/Serialization/GlobalModuleIndex.h @@ -67,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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits