对 gcc 4.4.3 c89 使用 exuberant-ctags 5.8
我刚刚开始使用 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