Merge pull request #72048 from Jamezzzb/#56350

#56350 - Give Identifier a hasUnderscoredNaming() helper
This commit is contained in:
Alex Hoppen
2024-03-04 20:13:01 -08:00
committed by GitHub
7 changed files with 10 additions and 7 deletions

View File

@@ -2297,7 +2297,7 @@ void ModuleDecl::findDeclaredCrossImportOverlaysTransitive(
for (Identifier overlay: overlays) {
// We don't present non-underscored overlays as part of the underlying
// module, so ignore them.
if (!overlay.str().startswith("_"))
if (!overlay.hasUnderscoredNaming())
continue;
ModuleDecl *overlayMod =
getASTContext().getModuleByName(overlay.str());