cquery
cquery copied to clipboard
go-to-definition on a #define finds symbols buried deep within that #define
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 ....
I search the change history of text_document_definition.cc, this add more result when finding definition. You may try previous version.
You already replied to a comment in which I noted that doing that results in getting one result - but it's the wrong result.