This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Store index::SymbolKind in HoverInfo
ClosedPublic

Authored by kadircet on Nov 26 2019, 9:16 AM.

Details

Summary

LSP's SymbolKind has some shortcomings when it comes to C++ types,
index::SymbolKind has more detailed info like Destructor, Parameter, MACRO etc.

We are planning to make use of that information in our new Hover response, and
it would be nice to display the Symbol type in full detail, rather than some
approximation.

Diff Detail

Event Timeline

kadircet created this revision.Nov 26 2019, 9:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2019, 9:16 AM

Build result: pass - 60291 tests passed, 0 failed and 732 were skipped.

Log files: console-log.txt, CMakeCache.txt

sammccall accepted this revision.Nov 28 2019, 3:32 AM
sammccall added inline comments.
clang-tools-extra/clangd/Hover.cpp
363

just Kind = Macro seems clearer...

clang-tools-extra/clangd/unittests/HoverTests.cpp
473

(FWIW, both the old and the new value here seem suspect - this isn't a property)

This revision is now accepted and ready to land.Nov 28 2019, 3:32 AM
kadircet updated this revision to Diff 232519.Dec 6 2019, 2:50 AM
kadircet marked an inline comment as done.
  • Address comments

Build result: pass - 60506 tests passed, 0 failed and 726 were skipped.

Log files: console-log.txt, CMakeCache.txt

This revision was automatically updated to reflect the committed changes.