Merge pull request #76269 from xymus/public-module-name

Diagnostics: Intro the public module name concept to hide support modules from clients
This commit is contained in:
Alexis Laferrière
2024-09-09 16:57:12 -07:00
committed by GitHub
18 changed files with 210 additions and 3 deletions

View File

@@ -992,6 +992,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
M.setSerializePackageEnabled();
if (!loadedModuleFile->getModuleABIName().empty())
M.setABIName(Ctx.getIdentifier(loadedModuleFile->getModuleABIName()));
if (!loadedModuleFile->getPublicModuleName().empty())
M.setPublicModuleName(Ctx.getIdentifier(loadedModuleFile->getPublicModuleName()));
if (loadedModuleFile->isConcurrencyChecked())
M.setIsConcurrencyChecked();
if (loadedModuleFile->hasCxxInteroperability()) {