Skip to content
hari-rangarajan edited this page Sep 14, 2017 · 4 revisions

ccglue is an external utility that can be used to generate cross-reference tag files for CCTree from a cscope database. ccglue is written in C with an emphasis on performance. If you find that your loading speeds are slow using native vimscript, it might be a good idea to use the external tool.
For more details, check out: http://sourceforge.net/projects/ccglue/ . The source code is easy to build on any posix platform using the familiar autotools interface. A win32 port is available as well.

Usage:

_$ ./ccglue --help
Usage: ccglue [OPTION...]
ccglue - cscope ctags glue. Produces cross-reference tags file for use with Vim
CCTree plugin (http://http://www.vim.org/scripts/script.php?script_id=2368).

-o, --output=FILE Output to FILE ( - for standard output). Default:
ccglue.out
-q, -s, --quiet, --silent Don't produce any output
-S, --cscopefiles=cscope1.out,[cscope2,...,cscopeN]
List of cscope databases to parse (i.e,
cscope1.out,cscope2.out,...,cscopeN.out). Default:
cscope.out
-v, --verbose Produce verbose output
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Report bugs to [email protected].
_

How to use?

Command line:
$ ccglue -S cscope1.out,cscope2.out,...cscopeN.out -o cctree.out

(If -o outputfilename is not specified, it will default to ccglue.out)

In Vim:
:CCTreeLoadXRefDBFromDisk cctree.out

Once, the database is loaded for tracing, ccglue can be run independently externally, and everytime a new call-tree is constructed, it will be from the updated cctree.out file.

Clone this wiki locally