本月博客排行
-
第1名
kaizi1992 -
第2名
arpenker -
第3名
wy_19921005
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
青否云后端云 - vipbooks
- gashero
- wy_19921005
- benladeng5225
- fantaxy025025
- e_e
- kaizi1992
- tanling8334
- arpenker
- sam123456gz
- zysnba
- javashop
- xiangjie88
- lemonhandsome
- wallimn
- ganxueyun
- Xeden
- xyuma
- zhanjia
- wangchen.ily
- jh108020
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- xpenxpen
- wjianwei666
- 喧嚣求静
- ranbuijj
- silverend
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- lich0079
- lzyfn123
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- zhangjijun
- lxguy
- lyndon.lin
最新文章列表
cscope 使用 -q 选项 搜索速度提升 100%
cscope的功能不再赘述,在这里cscope.sourceforge.net/ 可以下载到。
生成数据库文件时使用 cscope -b -q -R 中的 -q 选项将使用高级搜索算法,直线算短搜索命中时间,不过索引文件比之前的要大,并且多了 cscope.in.out 与 cscope.po.out 两个文件。经过测试,搜索时间缩短100%
配合emacs xcscope 如 ...
cscope 带目录使用
find后面的路径要写成绝对路径,要不然在子路径下打开文件,然后跳转的时候,使用cscope就会出现找不到文件的问题(相对路径造成的)
find ~/work/myProject/ -name "*.h" -o -name "*.c" -o -name "*.cc" -name "*.cpp" > cscope. ...
vim与cscope整合中的两个问题
1.
如果遇到duplicate database
信息如下
line 42:
E568: duplicate cscope database not added
Press ENTER or type command to continue
那么就是vim的全局配置中也有cscope add cscope.out
和cscope_maps.vim或者用户的vim配置文件中的cscope add ...