Add documentHighlight in clangd check for performance measurements.

Differential Revision: https://reviews.llvm.org/D125682
This commit is contained in:
Utkarsh Saxena 2022-05-16 14:06:22 +02:00
parent 9203063531
commit 5edd7665fd
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ public:
auto Hover = getHover(*AST, Pos, Style, &Index);
vlog(" hover: {0}", Hover.hasValue());
unsigned DocHighlights = findDocumentHighlights(*AST, Pos).size();
vlog(" documentHighlight: {0}", DocHighlights);
if (EnableCodeCompletion) {
Position EndPos = offsetToPosition(Inputs.Contents, End);
auto CC = codeComplete(File, EndPos, Preamble.get(), Inputs, CCOpts);