gpt4 book ai didi

c - 奇怪的 cscope 命令行限制

转载 作者:行者123 更新时间:2023-11-30 16:03:34 25 4
gpt4 key购买 nike

Cscope 在交互模式下有 11 个搜索输入字段。但是,当我尝试在面向行的输出模式下使用它并使用 -10 开关指定 Find all symbol assignments: 字段时,它不起作用。有什么想法吗?

谢谢。

最佳答案

我也看到了一些奇怪的地方。

在终端中,

cscope -d

提供以下选项

Find this C symbol:
Find this global definition:
Find functions called by this function:
Find functions calling this function:
Find this text string:
Change this text string:
Find this egrep pattern:
Find this file:
Find files #including this file:

但是,在 gvim 中使用我的 cscope 插件,

:cs help 

提供以下选项

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 assignments to

“查找作业”选项仅在第二个中可用。

因此,对于面向行的输出模式,最接近的似乎是“查找此文本字符串:”选项。可以这样做:

cscope -d -L -4 <text>

关于c - 奇怪的 cscope 命令行限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3989375/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com