查找已声明但未定义的函数

时间:2021-02-01 18:34:43

In a big VS project I need to find functions (methods really) that are defined in the header, but simply never implemented. These functions are never called, so no errors are generated. Libraries used are of no concern here.

在一个大的VS项目中,我需要找到在头文件中定义的函数(真正的方法),但是从未实现过。永远不会调用这些函数,因此不会生成错误。使用的图书馆在这里毫无顾虑。

Is there a VS tool, compiler flag or a C++ trick to find such functions?

是否有VS工具,编译器标志或C ++技巧来查找这些功能?

1 个解决方案

#1


0  

From what I know, in g++ there is a flag called -Wunused

据我所知,在g ++中有一个名为-Wunused的标志

Here is the documentation gcc.flags

这是文档gcc.flags

It should point out the variables that are unused or the functions which are not in use.

它应该指出未使用的变量或未使用的函数。

#1


0  

From what I know, in g++ there is a flag called -Wunused

据我所知,在g ++中有一个名为-Wunused的标志

Here is the documentation gcc.flags

这是文档gcc.flags

It should point out the variables that are unused or the functions which are not in use.

它应该指出未使用的变量或未使用的函数。