Sema: Intro the CheckImplementationOnlyStrict feature

This commit is contained in:
Alexis Laferrière
2025-10-24 13:24:05 -07:00
parent e2b0d53efe
commit 06db612d79
5 changed files with 20 additions and 1 deletions

View File

@@ -1897,6 +1897,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.enableFeature(Feature::NoExplicitNonIsolated);
}
if (Opts.hasFeature(Feature::CheckImplementationOnlyStrict) &&
!::getenv("SWIFT_DISABLE_IMPLICIT_CHECK_IMPLEMENTATION_ONLY"))
Opts.enableFeature(Feature::CheckImplementationOnly);
#if !defined(NDEBUG) && SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
/// Enable round trip parsing via the new swift parser unless it is disabled
/// explicitly. The new Swift parser can have mismatches with C++ parser -