This extension creates C call hierarchy, using cscope
, ctags
and, readtags
.
The main feature is creating a call hierarchy for C code.
This extension uses the cscope, ctags and, readtags (universal-ctags)
use brew
brew install cscope universal-ctags
N.B.1
brew
'suniversal-ctags
provides the best implementation ofctags
andreadtags
so it is highly recommended to usebrew
to install it N.B.2 it is highly un-recommended to use the native package manager to install this package unless you're sure that it's going to install the same implementation asbrew
's
- install
cscope
using cygwin or any other unix like environment or download it from here - install
ctags
&readtags
using cygwin or any other unix like environment or download it from here
make sure to add the following to the PATH
environment variable:
CTAGS_DIR
/ctagsCSCOPE_DIR
/cscopeCSCOPE_DIR
/cscope/UnxUtils/binCSCOPE_DIR
/cscope/UnxUtils/usr/local/wbin
- Upon extension activation, you'll be prompted to install the
CSCOPE
andCTAGS
dependencies (if you're on windows for now), clickYes
to install these dependencies - Open the call hierarchy by selecting a function, and issue the show command
Show Call Hierarchy
(from the command palette or from the editor context menu). - The extension tries to build the
cscope
&ctags
databases when you issue theShow Call Hierarchy
command and thecscope.out
and/orctags.out
file[s] is/are not found. If this doesn't happen and the files are not created, you can manually issue a database build from the command palette using the commandC Call Hierarchy: Build Database
. - explore extension settings to configure how the extension works as you like.