gpt4 book ai didi

c++ - Visual Assist X 重命名符号如何工作?

转载 作者:行者123 更新时间:2023-11-30 04:23:46 25 4
gpt4 key购买 nike

我想从一段巨大的代码中删除匈牙利符号,但我不确定插件如何处理替换。我的意思是 - 如果我有:

void DoNothing(int *pNothing)
{
pNothing = 0;
};

然后我单击“pNothing”并使用 VA 重构工具将其重命名为“nothing”,是仅在此函数中重命名它还是重命名整个项目中每个函数和类中名为 pNothing 的所有指针?

最佳答案

Rename changes the definition and all references, and declaration when programming in C/C++, C# and VB. Rename optionally changes comments and strings.

因此在您的示例中,它只会更改函数中的名称。但是,如果您要更改类成员的名称,那么它将在您的整个解决方案中进行更改。

引用:http://www.wholetomato.com/products/features/rename.asp

关于c++ - Visual Assist X 重命名符号如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13201039/

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