Find Unused Files

Finding unused files means to look at all the include dependencies in a given C++ project and find header files which are not included at all. This situation can often arise after unused includes directives have been removed with the Includator's find unused includes or organize includes features.


Example
Consider the following project structure:

  • project:
    • main.cpp
    • X.h
    • Y.h
    • Z.h
//main.cpp

#include "X.h" 
#include "Y.h" 

int main() {
  X x;
  Y y;
  return 0;
}

Finding unused includes in the context of this project means to propose the deletion of file Z.h.