日期:2014-05-16  浏览次数:20736 次

请教高手,vim+ctags如何查找一个tag的所有引用,而不是定义。
请教高手,vim+ctags如何查找一个tag的所有引用,而不是定义。
比如我定义了一个函数,abc()
我要查找整个工程里面都有些谁引用了我的abc函数,怎么弄?

------解决方案--------------------
引用:
请教高手,vim+ctags如何查找一个tag的所有引用,而不是定义。
比如我定义了一个函数,abc()
我要查找整个工程里面都有些谁引用了我的abc函数,怎么弄?

加装cscope

cscope commands:                                                                                 
add  : Add a new database             (Usage: add file
------解决方案--------------------
dir [pre-path] [flags])
find : Query for a pattern            (Usage: find c
------解决方案--------------------
d
------解决方案--------------------
e
------解决方案--------------------
f
------解决方案--------------------
g
------解决方案--------------------
i
------解决方案--------------------
s
------解决方案--------------------
t name)
       c: Find functions calling this function
       d: Find functions called by this function
       e: Find this egrep pattern
       f: Find this file
       g: Find this definition
       i: Find files #including this file
       s: Find this C symbol
       t: Find assignments to
help : Show this message              (Usage: help)
kill : Kill a connection              (Usage: kill #)
reset: Reinit all connections         (Usage: reset)
show : Show connections               (Usage: show)
------解决方案--------------------
引用:
引用:
请教高手,vim+ctags如何查找一个tag的所有引用,而不是定义。
比如我定义了一个函数,abc()
我要查找整个工程里面都有些谁引用了我的abc函数,怎么弄?

加装cscope

cscope commands:
add  : Add a new database             (Usage: add file