Find reference of constructor in smart pointer usage #1816
Closed
walkerlala
started this conversation in
General
Replies: 1 comment 1 reply
-
Issue #716 is similar. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems that when retrieving references of of a constructor of a class (i.e., "textDocument/references"), clangd successfully find the places where a raw
new
expression, but could not find the place wherestd::make_unique<DummyClass>()
orstd::make_shared<DummyClass>()
is used.Below is a illustration program containing only 4 small files:
(it could easily be compiled and generate a
compile_commands.json
, which could be feed into clangd)But clangd could not find the usage of
std::make_unique<Dummy>()
insideconstruct_dummy()
function:I am using vim with a lsp plugin, which could illustrate what I mean above.
I checked the jsonrpc response from clangd. It seems to miss the
make_unique
function call in libstdc++'s header:Is there any configuration I missed?
Beta Was this translation helpful? Give feedback.
All reactions