开发者

What is the tool to check include file that are useless?(c++) [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Tools to find included headers which a开发者_Python百科re unused?

I would like to check useless header file in c++ files(.h and .cpp)

During developing, There are so many relations between files.

So it cause compile time more longer.

Can you tell me what's the tool that help me.

Thank you.


Have a look at the Dehydra.

From the website:

Dehydra is a lightweight, scriptable, general purpose static analysis tool capable of application-specific analyses of C++ code. In the simplest sense, Dehydra can be thought of as a semantic grep tool.

It should be possible to come up with a script that checks for unused #include files.


I use lint, Verify the link, it does mention unused variables, unreachable statements and many more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜