[NFC] "SwiftVersion" → "LanguageMode" in DiagnosticEngine::warnUntilSwiftVersion, etc.

This commit is contained in:
Anthony Latsis
2025-12-04 15:11:07 +00:00
parent ce082bcc83
commit 88220a33c3
67 changed files with 402 additions and 392 deletions

View File

@@ -296,7 +296,7 @@ Status ModuleFile::associateWithFileContext(FileUnit *file, SourceLoc diagLoc,
StringRef SDKPath = ctx.SearchPathOpts.getSDKPath();
// In Swift 6 mode, we do not inherit search paths from loaded non-SDK modules.
if (!ctx.LangOpts.isSwiftVersionAtLeast(6) &&
if (!ctx.isLanguageModeAtLeast(6) &&
(SDKPath.empty() ||
!Core->ModuleInputBuffer->getBufferIdentifier().starts_with(SDKPath))) {
for (const auto &searchPath : Core->SearchPaths) {