This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Remove ReferenceFinder::Reference::Target
ClosedPublic

Authored by nridge on Dec 14 2022, 12:19 AM.
Tokens
"Like" token, awarded by tom-anders.

Diff Detail

Event Timeline

nridge created this revision.Dec 14 2022, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 12:19 AM
Herald added a subscriber: arphaman. · View Herald Transcript
nridge requested review of this revision.Dec 14 2022, 12:19 AM
kadircet accepted this revision.Dec 16 2022, 2:03 AM

thanks, lgtm!

clang-tools-extra/clangd/XRefs.cpp
869–870

nit: TargetDecls.insert(ND->getCanonicalDecl()) directly, and drop the braces.

897

nit: if (!TargetDecls.contains(D->getCanonicalDecl())

This revision is now accepted and ready to land.Dec 16 2022, 2:03 AM
nridge updated this revision to Diff 483623.Dec 16 2022, 11:44 AM

address nits

This revision was landed with ongoing or failed builds.Dec 16 2022, 11:45 AM
This revision was automatically updated to reflect the committed changes.