File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ class CompletionInstance {
47
47
// / changed, primary file is not the same, the \c Offset is not in function
48
48
// / bodies, or the interface hash of the file has changed.
49
49
swift::CompilerInstance *
50
- getReusingCompilerInstance (const swift::CompilerInvocation &Invocation,
51
- llvm::MemoryBuffer *completionBuffer,
52
- unsigned int Offset, DiagnosticConsumer *DiagC);
50
+ getCachedCompilerInstance (const swift::CompilerInvocation &Invocation,
51
+ llvm::MemoryBuffer *completionBuffer,
52
+ unsigned int Offset, DiagnosticConsumer *DiagC);
53
53
54
54
// / Returns new \c CompilerInstance for the completion request. Users still
55
55
// / have to call \c performParseAndResolveImportsOnly() , and perform the
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ static llvm::hash_code calculateInvocationHash(const CompilerInvocation &Inv) {
195
195
196
196
} // namespace
197
197
198
- CompilerInstance *CompletionInstance::getReusingCompilerInstance (
198
+ CompilerInstance *CompletionInstance::getCachedCompilerInstance (
199
199
const swift::CompilerInvocation &Invocation,
200
200
llvm::MemoryBuffer *completionBuffer, unsigned int Offset,
201
201
DiagnosticConsumer *DiagC) {
@@ -348,8 +348,8 @@ CompilerInstance *swift::ide::CompletionInstance::getCompilerInstance(
348
348
// FIXME: ASTScopeLookup doesn't support code completion yet.
349
349
Invocation.disableASTScopeLookup ();
350
350
351
- if (auto *cached = getReusingCompilerInstance (Invocation, completionBuffer,
352
- Offset, DiagC))
351
+ if (auto *cached = getCachedCompilerInstance (Invocation, completionBuffer,
352
+ Offset, DiagC))
353
353
return cached;
354
354
355
355
if (auto *renewed = renewCompilerInstance (
You can’t perform that action at this time.
0 commit comments