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:
Nuri Amari
2022-01-16 13:28:59 -05:00
parent 3762ca1fa7
commit 7ec861fbd9
16 changed files with 127 additions and 20 deletions

View File

@@ -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);
}