This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Respect ReferencesParams.context.includeDeclarations
ClosedPublic

Authored by sammccall on Jan 26 2021, 8:30 AM.

Details

Summary

Unfortunately this treats overrides declarations as declarations, not as
references. I don't plan to land this until I have a fix for that issue.

Diff Detail

Event Timeline

sammccall created this revision.Jan 26 2021, 8:30 AM
sammccall requested review of this revision.Jan 26 2021, 8:30 AM
kbobyrev accepted this revision.Jan 29 2021, 4:11 AM

Thanks, LGTM with a couple of nits.

clang-tools-extra/clangd/XRefs.h
23

nit: are these two needed? I can't see any usages of symbols defined there.

84

nit: Plain means neither Declaration nor Definition, right? Maybe None then?

This revision is now accepted and ready to land.Jan 29 2021, 4:11 AM
This revision was landed with ongoing or failed builds.Feb 1 2021, 8:07 AM
This revision was automatically updated to reflect the committed changes.
sammccall marked 2 inline comments as done.
sammccall added inline comments.Feb 1 2021, 8:07 AM
clang-tools-extra/clangd/XRefs.h
84

Haha, this is actually unused.