Removing unused includes

Are there any tools that parse .h files and recommend removing #includes . For example, if the definitions in include are not used, or if you can run a forward declaration instead.

I work both on windows and on Linux platforms.

+4
source share
3 answers
+4
source

ReDHead is a project for just that. This is an Eclipse plugin.

+1
source

I searched for such a tool a while ago, and now I found out that this functionality is also provided by the Resharper C ++ plugin for Visual Studio.

+1
source

Source: https://habr.com/ru/post/1444350/


All Articles