================ @@ -127,33 +127,39 @@ struct ModuleFile { std::string ModuleFilePath; }; -bool IsModuleFileUpToDate(PathRef ModuleFilePath, - const PrerequisiteModules &RequisiteModules, - llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { +bool IsModuleFileUpToDate( + PathRef ModuleFilePath, + const PrerequisiteModules &RequisiteModules, + const CompilerInvocation &CI, + llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { + CompilerInstance Clang; ---------------- ChuanqiXu9 wrote:
We may not be able to do it since ASTReader is stateful. If the ASTReader reads multiple module files (BMIs), the ASTReader will check automatically if these module files conflicts with each other. It doesn't matter in an ideal world. But it is common that users wrote invalid codes especially during the process of editing. https://github.com/llvm/llvm-project/pull/113879 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits