cquery icon indicating copy to clipboard operation
cquery copied to clipboard

go-to-definition on a #define finds symbols buried deep within that #define

Open dimbleby opened this issue 7 years ago • 2 comments

Example per https://github.com/cquery-project/cquery/issues/824#issuecomment-433700930.

REQUIRE eventually expands to something including ExpressionDecomposer (among others) and so that gets returned.

This is at best super-unintuitive - if I'm on REQUIRE and I goto-definition, I expect to be taken to #define REQUIRE ....

dimbleby avatar Oct 29 '18 20:10 dimbleby

I search the change history of text_document_definition.cc, this add more result when finding definition. You may try previous version.

LiLeoH avatar Oct 30 '18 07:10 LiLeoH

You already replied to a comment in which I noted that doing that results in getting one result - but it's the wrong result.

dimbleby avatar Oct 30 '18 08:10 dimbleby