cppclean
Find unused code in C++ projects. tldr-pages
On several platforms
Several platforms
Run in a project's directory
cppclean path/to/projectIdentifyRun on a project where the headers are in the inc1/ and inc2/ directories
cppclean path/to/project --include-path inc1 --include-path inc2IdentifyRun on a specific file main.cpp
cppclean main.cppIdentifyRun on the current directory, excluding the "build" directory
cppclean . --exclude buildIdentify