Analysis of Includes

Last modified: 11 February 2024

Long build times caused by huge hierarchies of includes is one of the biggest problems in large real-world C++ projects. ReSharper has a few features to help you with optimizing includes in design time. For example, it will mark unused #include directives or automatically create forward declarations for unresolved names instead of including the headers with the required declarations.

To address the includes hierarchies problem in a more systematic way, ReSharper provides Includes Analyzer, a code inspection tool that helps you locate and eliminate unnecessary header dependencies.