mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Enable lazy ClangImporter diagnostics by default
Replace the existing `-enable-experimental-clang-importer-diagnostics` flag with an opt-out version entitled `-disable-experimentalc-clang-importer-diagnostics`. Enable the beviour previously hidden behind the old flag by default.
This commit is contained in:
@@ -3627,7 +3627,7 @@ bool MissingMemberFailure::diagnoseAsError() {
|
||||
.highlight(getSourceRange())
|
||||
.highlight(nameLoc.getSourceRange());
|
||||
const auto &ctx = getSolution().getDC()->getASTContext();
|
||||
if (ctx.LangOpts.EnableExperimentalClangImporterDiagnostics) {
|
||||
if (!ctx.LangOpts.DisableExperimentalClangImporterDiagnostics) {
|
||||
ctx.getClangModuleLoader()->diagnoseMemberValue(getName().getFullName(),
|
||||
baseType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user