VIM编辑器:使用cscope老是出现一些E259: no matches found for csope query 问题;
2015-09-05 13:25
2691 查看
vim+ctags+cscope在mac
os上的应用 时,经常出现 使用cscope老是出现一些E259: no matches found for csope query 问题。
在网上看了一下,有人说是源代码是 dos格式,不是unix格式导致的,其实经过检查,应该不是这个原因;
真正的原因是,用下面的命令生成cscope数据文件:出错了
find . -name "*.h" -o -name "*.c" -o -name "*.m" >cscope.files
改为:
find ./ -name "*.h" -o -name "*.c" -o -name "*.m" >cscope.files
重新更新产生,cscope.out 后(相关命令脚本,请搜索网络), 再使用cscope的命令:就没有什么问题了。
cscope commands:
add : Add a new database (Usage: add file|dir [pre-path] [flags])
find : Query for a pattern (Usage: find c|d|e|f|g|i|s|t name)
c: Find functions calling this function
d: Find functions called by this function
e: Find this egrep pattern
f: Find this file
g: Find this definition
i: Find files #including this file
s: Find this C symbol
t: Find this text string
help : Show this message (Usage: help)
kill : Kill a connection (Usage: kill #)
reset: Reinit all connections (Usage: reset)
show : Show connections (Usage: show)
os上的应用 时,经常出现 使用cscope老是出现一些E259: no matches found for csope query 问题。
在网上看了一下,有人说是源代码是 dos格式,不是unix格式导致的,其实经过检查,应该不是这个原因;
真正的原因是,用下面的命令生成cscope数据文件:出错了
find . -name "*.h" -o -name "*.c" -o -name "*.m" >cscope.files
改为:
find ./ -name "*.h" -o -name "*.c" -o -name "*.m" >cscope.files
重新更新产生,cscope.out 后(相关命令脚本,请搜索网络), 再使用cscope的命令:就没有什么问题了。
cscope commands:
add : Add a new database (Usage: add file|dir [pre-path] [flags])
find : Query for a pattern (Usage: find c|d|e|f|g|i|s|t name)
c: Find functions calling this function
d: Find functions called by this function
e: Find this egrep pattern
f: Find this file
g: Find this definition
i: Find files #including this file
s: Find this C symbol
t: Find this text string
help : Show this message (Usage: help)
kill : Kill a connection (Usage: kill #)
reset: Reinit all connections (Usage: reset)
show : Show connections (Usage: show)
相关文章推荐
- javaSE基础编程——GUI窗体
- EasyUi 合并单元格占列显示
- UE4的delegate
- 'sessionFactory' or 'hibernateTemplate' is required
- mac下使用QuickTime录屏及上传youku注意事项
- easyUI的高级查询
- Unique Paths
- IOS_UI_传值
- IOS_TextField,UIButton
- IOS_UI_Label
- mysql 插入中文时出现ERROR 1366 (HY000): Incorrect string value: '\xC0\xEE\xCB\xC4' for column 'usern ame' at row 1
- Android UI设计:ViewFlipper使图片循环滑动
- iOS 关于UICollectionView的cell重用问题
- GCC内建函数 __builtin_return_address实现
- hdu 1121 Complete the Sequence(插值差分)
- 关于divide and conquer的两道Leetcode
- HDU1711 Number Sequence(KMP模版题)
- parseInt和valueOf
- Lexical or preprocessor 'XXX/XXX.h' issue file not found
- POJ2299 Ultra-QuickSort(树状数组求逆序数+离散化)