deheader
« Back to VersTracker
Description:
Analyze C/C++ files for unnecessary headers
Type: Formula  |  Latest Version: 1.11@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c c++ code-analysis developer-tools header-optimization
Install: brew install deheader
About:
Deheader is a command-line utility that analyzes C and C++ source files to identify and report unnecessary header inclusions. It parses source code to determine which includes are actually required by the symbols used, helping developers reduce compilation dependencies. This results in cleaner code, faster build times, and easier maintenance of large codebases.
Key Features:
  • Automatically detects unused #include directives
  • Supports both C and C++ source files
  • Provides detailed reports on removable headers
  • Helps reduce compilation dependencies and build times
Use Cases:
  • Cleaning up legacy C/C++ codebases with excessive includes
  • Optimizing build performance in large projects
  • Enforcing include hygiene during code reviews
Alternatives:
  • include-what-you-use – IWYU is more comprehensive but requires a full build setup; deheader is simpler and works directly on source files
Version History
Detected Version Rev Change Commit
Oct 29, 2025 9:25pm 0 VERSION_BUMP c844ec82
Oct 5, 2024 10:53am 0 VERSION_BUMP 9a6cc406