我真的必须将递归 grep 或 find 与范围结合使用才能将 .cpp 文件添加到 cscope 数据库吗?
是否有一个简单的模式匹配参数可以与 cscope 的现有 -R 参数无缝配合?
谢谢。
最佳答案
我有 cscope: version 15.7a
并且它处理我的 .cpp
, .cc
文件作为子目录中的源文件 cscope -R
。 mlcscope
在 cygwin 中的工作方式相同。
所以我们在 Using Cscope on large projects 有过时的信息:
by default Cscope only parses files with the .c, .h, .y, or .l extensions
在 cscope 的最新源代码中,我找到了函数 static BOOL
issrcfile(char *path)
具有硬编码 扩展集:c h l y C G H L bp qc qh sd cc hh tcc cpp cxx hpp hxx
识别为源代码文件。
联机帮助页也没有提及使用 -R
的正则表达式或模式。
关于c++ - 将 cpp 文件添加到 cscope 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10199450/