[PATCH] D52311: [clangd] Add support for hierarchical documentSymbol

Simon Marchi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 4 14:40:53 PDT 2018


simark added a comment.

I just tried this, this looks very promising!  It should help build our outline view in a much more robust way than we do currently.

A nit for the final patch, I would suggest omitting the fields that are optional, like `children` (when the list is empty) and `deprecated`.

In vscode, is there a way to get a tree representation of this data?  When I look at "Go to symbol in File..." (ctrl-shift-o) or the outline view at the bottom of the file explorer, they are both a flat list.  What difference does this patch make in how vscode shows the data?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52311





More information about the cfe-commits mailing list