cxxmodules: return failure from the collator when private usage is found

This commit is contained in:
Ben Boeckel
2024-02-14 20:25:53 -05:00
parent 5e984bb352
commit 3f8a59a05c
3 changed files with 10 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ cm::static_string_view CxxModuleMapExtension(
// import cycle).
std::set<std::string> CxxModuleUsageSeed(
CxxModuleLocations const& loc, std::vector<cmScanDepInfo> const& objects,
CxxModuleUsage& usages);
CxxModuleUsage& usages, bool& private_usage_found);
// Return the contents of the module map in the given format for the
// object file.