本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
java-007 - Anmin
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - wy_19921005
- vipbooks
- 青否云后端云
- kaizi1992
- e_e
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- lemonhandsome
- jh108020
- ganxueyun
- Xeden
- zhanjia
- xyuma
- wangchen.ily
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- ajinn
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- javashop
- lzyfn123
- sunj
- yeluowuhen
- lerf
- silverend
- chenqisdfx
- xiaoxinye
- flashsing123
- bosschen
- lyndon.lin
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
最新文章列表
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 ...