【发布时间】:2012-05-22 07:38:57
【问题描述】:
我使用以下命令来生成我的 cscope 数据库:
tmpfile=$(mktemp)
find dir1/ dir2/ dir3/ -type f -regex ".*\.\([chlysS]\(xx\|pp\)*\|cc\|hh\|inl\|inc\|ld\)$" -print > $tmpfile
cscope -q -b -U -i $tmpfile -f cscope.out
进入 vim,:cs f g myfunction 只引导我到 C 文件中的定义,而在头文件中。
【问题讨论】: