Unused #includes in C++ source lead to unwanted dependencies and slower compile and link timings.

IncludeChecker finds most of these unused #includes using a simple heuristic: if you include a file, you need to use one or more symbols from it. If that's not the case, IncludeChecker will mark the #include as unused.

IncludeChecker is very customizable to be able to run as an automated task where it will fail as soon as an unused #include is detected.

Because of the simple heuristic it will not find all unused #includes, but it will find most of them.

Features

  • Scanning of single files or complete subdirectories
  • Troublesome includes can be ignored
  • Global type prefixes and suffixes can be configured
  • Easy to setup to run as a build check
  • Fast because of simple heuristics

Project Activity

See All Activity >

License

BSD License

Follow IncludeChecker

IncludeChecker Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of IncludeChecker!

Additional Project Details

Operating Systems

Windows

Intended Audience

Developers

User Interface

Command-line

Programming Language

C#, C++

Related Categories

C# Source Code Analysis Tool, C++ Source Code Analysis Tool

Registered

2012-05-05