c++ - 将 cpp 文件添加到 cscope 数据库

标签 c++ cscope

我真的必须将递归 grep 或 find 与范围结合使用才能将 .cpp 文件添加到 cscope 数据库吗?

是否有一个简单的模式匹配参数可以与 cscope 的现有 -R 参数无缝配合?

谢谢。

最佳答案

我有 cscope: version 15.7a 并且它处理我的 .cpp, .cc 文件作为子目录中的源文件 cscope -Rmlcscope 在 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/

相关文章:

c++ - constexpr 类中的引用字段

c++ - Qt : catched mouseMoseEvent dont interact with QWebView html page element

c++ - 来自 std::exception 的更多信息

c - 使用 vim 在每个函数调用中插入 printf

Linux 内核 makefile cscope 目标

c++ - Boost Asio 将接受的套接字从一个 io_service 传输到另一个 io_service

c++ - 向菜单项添加工具提示)

linux - 符号链接(symbolic link)文件的 cscope

python - 使用 cscope 用 VIM 浏览 Python 代码?

macos - 如何在 MacOS 上使用 aquamacs 设置 cscope?