Revert "[clangd] Log completion context type. NFC"
This reverts commit r334572, which has a potential use-after-free.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@334589 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/clangd/CodeComplete.cpp b/clangd/CodeComplete.cpp
index 0f3ca6a..a5809c6 100644
--- a/clangd/CodeComplete.cpp
+++ b/clangd/CodeComplete.cpp
@@ -881,12 +881,10 @@
SPAN_ATTACH(Tracer, "merged_results", NBoth);
SPAN_ATTACH(Tracer, "returned_results", Output.items.size());
SPAN_ATTACH(Tracer, "incomplete", Output.isIncomplete);
- log(llvm::formatv(
- "Code complete ({0}): {1} results from Sema, {2} from Index, "
- "{3} matched, {4} returned{5}.",
- getCompletionKindString(Recorder->CCContext.getKind()), NSema, NIndex,
- NBoth, Output.items.size(),
- Output.isIncomplete ? " (incomplete)" : ""));
+ log(llvm::formatv("Code complete: {0} results from Sema, {1} from Index, "
+ "{2} matched, {3} returned{4}.",
+ NSema, NIndex, NBoth, Output.items.size(),
+ Output.isIncomplete ? " (incomplete)" : ""));
assert(!Opts.Limit || Output.items.size() <= Opts.Limit);
// We don't assert that isIncomplete means we hit a limit.
// Indexes may choose to impose their own limits even if we don't have one.