[PATCH] D125682: Add documentHighlight in clangd check for performance measurements.
Utkarsh Saxena via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 16 11:22:56 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5edd7665fd16: Add documentHighlight in clangd check for performance measurements. (authored by usaxena95).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125682/new/
https://reviews.llvm.org/D125682
Files:
clang-tools-extra/clangd/tool/Check.cpp
Index: clang-tools-extra/clangd/tool/Check.cpp
===================================================================
--- clang-tools-extra/clangd/tool/Check.cpp
+++ clang-tools-extra/clangd/tool/Check.cpp
@@ -255,6 +255,9 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125682.429794.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220516/cd61e8c9/attachment.bin>
More information about the cfe-commits
mailing list