clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
594 stars 97 forks source link

Automatic callgraph generation #542

Open MartyMcFlyInTheSky opened 8 months ago

MartyMcFlyInTheSky commented 8 months ago

When browsing large codebases it can be cumbersome to get the right mental picture of the components architecture. It would be nice to have a quick look at the callgraphs of the current file or maybe multiple files just one shortcut away.

This is just a rough idea but I guess most developers know what I mean.

HighCommander4 commented 8 months ago

It's an interesting idea.

I think the first step to fleshing it out would be to figure out, given that clangd is based on the Language Server Protocol, what part of this feature would be implemented by the server vs. the client, and whether an extension to the protocol is necessary.

i-ky commented 8 months ago

There is/was a wonderful project - Sourcetrail by CoatiSoftware. It is now abandoned, but there is a fork trying to keep it alive. There are extensions/plugins for various IDEs/text editors including VS Code.