ccglue


Ⅰ. 插件描述

Companion utility for Vim CCTree plugin

Ⅱ. 基本信息

创建日期:  2012-02-02
使用用户:  1
Github星:  5
插件作者:  hari-rangarajan

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'hari-rangarajan/ccglue'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'hari-rangarajan/ccglue'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'hari-rangarajan/ccglue'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/hari-rangarajan/ccglue

Ⅳ. 文档说明

ccglue is intended to be the interfacing app between cscope and ctags. It
can generate cross-reference tag files that can be interfaced with the Vim
CCTree plugin (http://www.vim.org/scripts/script.php?script_id=2368). There
is a stand-alone command-line tracer (ccglue_tracer) that can dump
call-tree outlines whose output can be reprocessed.

Currently supported languages: C

Some babble:
Cscope and ctags are semantic analysis tools that excel in specific areas,
i.e., ctags has excellent tag support for a huge number of languages, while
cscope's flex scanner provides excellent semantic analysis. However, what is
left lacking is usually context for the semantic analysis. Context allows you
to generate more data that can be used for more purposes, i.e., case in hand
call-graph, code completion, and error detection. This tool attempts to analyze
the cscope generated data using additional context from ctags data.

More features and language support to follow.

You can find the respective tools here:
cscope -- cscope.sourceforge.net
ctags -- ctags.sourceforge.net

BUILDING and INSTALLING


The package with configured with auto-tools. The typical installation process
should work on most systems. Requires a reasonably recent C++ compiler with
STL libraries (including TR1).

./configure
make
make install

Options to the configure script are up to you. For details, run:

./configure --help

(There is only a debug flag to generate debug symbols)

USAGE


Build cross-reference tag file with index

$ ccglue -I                                     (or --build-index)

Trace symbols

$ ccglue_tracer -s SYMBOL_NAME -c f -d 2        (f - forward tree, r - reverse)

添加新评论