Skip to content

Commit 0fd8d07

Browse files
authored
Merge pull request swiftlang#26511 from davidungar/disableASTScope
2 parents 037f6c1 + f9266b9 commit 0fd8d07

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/swift/Frontend/Frontend.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ class CompilerInvocation {
291291

292292
void setCodeCompletionFactory(CodeCompletionCallbacksFactory *Factory) {
293293
CodeCompletionFactory = Factory;
294+
disableASTScopeLookup();
295+
}
296+
297+
/// Called from lldb, see rdar://53971116
298+
void disableASTScopeLookup() {
299+
LangOpts.EnableASTScopeLookup = false;
294300
}
295301

296302
CodeCompletionCallbacksFactory *getCodeCompletionFactory() const {

0 commit comments

Comments
 (0)