Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>GNU C Call HierarchyNew to Visual Studio Code? Get it now.
GNU C Call Hierarchy

GNU C Call Hierarchy

miki0w0

|
3,827 installs
| (0) | Free
Call Hierarchy for c/c++ using gtags
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GNU C Call Hierarchy README

The extension generates C call hierarchy with your GTAGS. It is recommended to use it with the extension C/C++ GNU Global.

Features

This extension provides a call hierachy for C code.

  • Data based on GNU Global.
  • Register to VS Code native "Show Call Hierachy" command.
  • Compatible with other extension using GTAGS.

Requirements

You need to ensure glboal are installed on your device.

You have to first generate GTAGS, GPATH and GRTAGS via gtags command.

Usage

  1. Prepare your Gtag database via gtags command.
  2. Right click the function you want to trace and click "Show Call Hierarchy".
  3. Trace the callers in "References" pane.

demo

Extension Settings

This extension contributes the following settings:

  • Global Executable: The path of global binary.
  • Gtag Database Dir Prefix: If this config is set to prefixDir, it will read the GTAGS DB under prefixDir/project_dir. This is the same as Obj Dir Prefix config of the extension C/C++ GNU Global.

Known Issues

The precision of gtags is not the same as ctags. Some symbol will refer to its declaration and hard to figure out that. In such case, it will show a wrong function/symbol.

Besides, gtags also cannot directly find what functions the given function calls.

The extension C Call Hierarchy can provide a better expeirence. I did not find a good extension work with ctags and do not want too many tags eat my storage.

Release Notes

0.0.4

Fix database path is not correctly read.

0.0.3

Use default shell environment.

0.0.2

Add Icon

0.0.1

Initial release.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft