summaryrefslogtreecommitdiffstats
path: root/Source/cmCxxModuleMapper.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-05-14 21:24:02 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-18 12:34:31 (GMT)
commit18f87c87f86473dd2106b6d8ab7acc9def99b9b1 (patch)
treeaab3ae4f9f7487eabccd2ffaa679e8ff18669c8f /Source/cmCxxModuleMapper.h
parent56f7d6f827290dd7d4d5c6edf0fe12568d4a819e (diff)
downloadCMake-18f87c87f86473dd2106b6d8ab7acc9def99b9b1.zip
CMake-18f87c87f86473dd2106b6d8ab7acc9def99b9b1.tar.gz
CMake-18f87c87f86473dd2106b6d8ab7acc9def99b9b1.tar.bz2
cmCxxModuleMapper: track whether modules are private or not
This allows collation to give a useful error message when it finds usage of a private module rather than collation just not informing the compilation and the compiler erroring out about not being able to import unknown modules (which exists, but it was not told about due to visibility). Fixes: #24652
Diffstat (limited to 'Source/cmCxxModuleMapper.h')
-rw-r--r--Source/cmCxxModuleMapper.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmCxxModuleMapper.h b/Source/cmCxxModuleMapper.h
index f405054..ef01e48 100644
--- a/Source/cmCxxModuleMapper.h
+++ b/Source/cmCxxModuleMapper.h
@@ -50,12 +50,11 @@ struct CxxModuleLocations
std::function<std::string(std::string)> PathForGenerator;
// Lookup the BMI location of a logical module name.
- std::function<cm::optional<std::string>(std::string const&)>
- BmiLocationForModule;
+ std::function<CxxBmiLocation(std::string const&)> BmiLocationForModule;
// Returns the generator path (if known) for the BMI given a
// logical module name.
- cm::optional<std::string> BmiGeneratorPathForModule(
+ CxxBmiLocation BmiGeneratorPathForModule(
std::string const& logical_name) const;
};