mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
REPL: Find completions from Clang modules.
Integrating Clang's FindVisibleDecls with Swift's by importing every decl created too much per-repl-entry compile time overhead, so as a workaround, just wire completions directly to FindVisibleDecls on the clang translation unit itself. Unfortunately this means we get completions for things Swift can't import yet, but it also means we don't have to wait 30 seconds to compile every entry after doing a completion. Swift SVN r4061
This commit is contained in:
@@ -279,7 +279,10 @@ void Module::lookupVisibleDecls(AccessPathTy AccessPath,
|
||||
.lookupVisibleDecls(AccessPath, Consumer, LookupKind, *TU);
|
||||
}
|
||||
|
||||
// TODO Delegate to Clang lookupVisibleDecls.
|
||||
// TODO: Visit clang modules using Clang's Sema::LookupVisibleDecls.
|
||||
// Importing every single Clang decl as a Swift decl currently makes
|
||||
// everything horrendously slow.
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user