Skip to content

Commit d60116d

Browse files
author
Nathan Hawes
committed
[CodeCompletion] Remove unused forward declaration and fix up an out-of-date comment (NFC)
1 parent 9b8fb7d commit d60116d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/IDE/CodeCompletion.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,6 @@ void CodeCompletionContext::sortCompletionResults(
15311531
}
15321532

15331533
namespace {
1534-
class CompletionLookup;
15351534

15361535
class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
15371536
CodeCompletionContext &CompletionContext;

lib/Sema/TypeCheckCodeCompletion.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,8 @@ bool TypeChecker::typeCheckForCodeCompletion(
739739
ContextFinder contextAnalyzer(expr);
740740
expr->walk(contextAnalyzer);
741741

742-
// If there was no completion expr (e.g. if the code completion location is
743-
// within an ErrorExpr without an valid subexpr due to parser error recovery)
744-
// bail.
742+
// If there was no completion expr (e.g. if the code completion location was
743+
// among tokens that were skipped over during parser error recovery) bail.
745744
if (!contextAnalyzer.hasCompletionExpr())
746745
return false;
747746

0 commit comments

Comments
 (0)