IDE+Evaluator: refactor the implementation of two common IDE utilities to the evaluator model

These APIs are 'canDeclProvideDefaultImplementationFor' and 'collectAllOverriddenDecls'.
This commit is contained in:
Xi Ge
2019-07-18 18:14:02 -07:00
parent e5e469f330
commit 4d57590fa9
8 changed files with 183 additions and 64 deletions

View File

@@ -189,6 +189,11 @@ bool CompilerInstance::setUpASTContextIfNeeded() {
Diagnostics));
registerTypeCheckerRequestFunctions(Context->evaluator);
// Migrator and indexing need some IDE requests.
if (Invocation.getMigratorOptions().shouldRunMigrator() ||
!Invocation.getFrontendOptions().IndexStorePath.empty()) {
registerIDERequestFunctions(Context->evaluator);
}
if (setUpModuleLoaders())
return true;