對gcc使用exuberant-ctags 5.8 4.4.3 c89使用exuberant-ctags時使用哪些選項?
我剛開始使用exuberant-ctags,我只是想知道你添加了哪些選項。
這裏是一個列表,我只是想知道添加太多可能會被殺死。
$ ctags --list-kinds=c
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
n namespaces
p function prototypes [off]
s structure names
t typedefs
u union names
v variable definitions
x external and forward variable declarations [off]
我會使用以下命令:
ctags -e --c-kinds=+defgpstux -R
我只是想知道:是矯枉過正?
c classes No -- I don't have any classes as this is c
d macro definitions YES -- I have many macros
e enumerators (values inside an enumeration) YES
f function definitions YES
g enumeration names YES
l local variables [off] NO
m class, struct, and union members NO
n namespaces NO
p function prototypes [off] YES
s structure names YES -- Is there any difference with m
t typedefs YES
u union names YES
v variable definitions NO
x external and forward variable declarations [off] YES
但是Cscope不支持C++。通用ctags是去這裏的路 – Pascalius 2015-11-05 11:09:12