cppclean
C++ unused header and code finder
TLDR
SYNOPSIS
cppclean [options] paths...
DESCRIPTION
cppclean finds problems in C++ source that slow development and increase compilation time. It detects unused #include directives, unnecessary headers, and other issues that bloat build times without contributing to functionality.
The tool analyzes code to identify which headers can be safely removed, reducing compilation dependencies and speeding up incremental builds. It also finds forward declarations that could replace full includes, further optimizing compile times.
By cleaning up unused includes and identifying unnecessary dependencies, cppclean helps maintain lean, efficient C++ codebases and improves developer productivity through faster build cycles.
PARAMETERS
--include-path path
Additional include search paths.--exclude pattern
Exclude files matching pattern.
CAVEATS
May report false positives for conditionally compiled code. Results should be verified before removing includes.
SEE ALSO
clang-tidy(1), include-what-you-use(1)

