6 Hover ideas
Sam McCall edited this page 2019-05-03 15:43:32 +02:00

Info we may want to include (in API and/or UI):

  • name
  • scope
  • kind (variable vs function vs ...)
  • type (actual type, not as-written. questionably useful for functions, what does it even mean for types/templates/...)
  • definition (e.g. initializer and spelled type for variables. declaration only for functions. Lambda captures/parameters?)
  • documentation

Possible layout


SymbolCollector::initialize
member function

This is where we'd put a documentation comment, if we had one!

Parameters:

  • Ctx: clang::ASTContext &

Returns: std::string

namespace clang::clangd {
std::string SymbolCollector::initialize(ASTContext &Ctx) override;
}