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:
@@ -590,7 +590,7 @@ Expr *TypeChecker::resolveDeclRefExpr(UnresolvedDeclRefExpr *UDRE,
|
||||
.diagnose(Loc, diag::cannot_find_in_scope, Name,
|
||||
Name.isOperator())
|
||||
.highlight(UDRE->getSourceRange());
|
||||
if (Context.LangOpts.EnableExperimentalClangImporterDiagnostics) {
|
||||
if (!Context.LangOpts.DisableExperimentalClangImporterDiagnostics) {
|
||||
Context.getClangModuleLoader()->diagnoseTopLevelValue(
|
||||
Name.getFullName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user