您的位置:首页 > 运维架构

cscope中添加其他类型的文件

2013-09-22 17:28 169 查看

How to use cscope for a project which has .c , .cpp and .h files?

You can use following commands to do the required task from the root directory of llvm source tree:

[code]touch tags.lst
find | grep "\.c$" >> tags.lst
find | grep "\.cpp$" >> tags.lst
find | grep "\.h$" >> tags.lst
cscope -i tags.lst

It would create cscope.out file which is used with cscope to browse the code. Hope it helps!

转载自http://stackoverflow.com/questions/11917923/how-to-use-cscope-for-a-project-which-has-c-cpp-and-h-files
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: