c++ - 使用 CScope 查找函数调用(非定义)(C/C++)

标签 c++ c cscope

我需要在我的 C 和 C++ 代码中查找函数调用。当我在寻找一些合适的软件时,我找到了 CScope。它看起来很不错,唯一的问题是,我找不到一种方法来找到它的函数调用。

 0 Find this C symbol:
 1 Find this function definition:
 2 Find functions called by this function:
 3 Find functions calling this function:
 4 Find this text string:
 5 Change this text string:
 6 Find this egrep pattern:
 7 Find this file:
 8 Find files

我考虑过查找所有符号 (cscope -L0),然后删除定义 (cscope -L1),但这意味着代码将被解析 2 倍,我担心它会太慢。

有没有更好的、“原始的”方式来使用 CScope 做到这一点?

最佳答案

使用选项 -L3 请求调用特定函数的函数。

关于c++ - 使用 CScope 查找函数调用(非定义)(C/C++),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36178082/

相关文章:

c - 使用 ReadFile 读取整个 PhysicalDrive 内容

c - 为什么我的双指针会覆盖其行?

c - Arduino:如何将字符串常量传递到字符数组中?

linux - 无法生成 cscope.out 文件

vim - 如何让 cscope 在 cscope.out 文件中使用绝对路径?

c++ - -static-libasan 的 undefined symbol 错误

c++ - QWidget::grab 视频功能:无法捕捉

android - libgnuSTL_shared.so 从哪里来?为什么我构建后它的大小不同?

c - 在单独的目录中构建 cscope.out 文件

c++ - 在不复制的情况下划分 std::string