This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Also perform merging for symbol definitions
ClosedPublic

Authored by kadircet on Apr 25 2019, 3:37 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kadircet created this revision.Apr 25 2019, 3:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2019, 3:37 AM
kadircet updated this revision to Diff 196654.Apr 25 2019, 9:21 AM
  • Get rid of debug comments
kadircet updated this revision to Diff 197725.May 2 2019, 2:42 AM
  • Update diff
sammccall accepted this revision.May 2 2019, 9:16 AM
sammccall added inline comments.
clang-tools-extra/clangd/XRefs.cpp
350 ↗(On Diff #197725)

Maybe move this below the PreferredDeclaration assignment?

It might just be me, but the generated code case seems much more obscure than the AST/index conflict case.

350 ↗(On Diff #197725)

The connection between the comment and the code seems a little obscure to me.
maybe. // We may still prefer the definition from the index, e.g. for generated symbols.

This revision is now accepted and ready to land.May 2 2019, 9:16 AM
This revision was automatically updated to reflect the committed changes.
kadircet marked 2 inline comments as done.
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2019, 5:09 AM