]> git.lyx.org Git - lyx.git/commit
Script for finding unneeded headers
authorScott Kostyshak <skostysh@lyx.org>
Thu, 2 May 2013 06:40:48 +0000 (02:40 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 2 May 2013 06:40:48 +0000 (02:40 -0400)
commit6adae698101dad5d50a66d18f2857b8703055689
tree9cd1318702e8166599e684267d04610b51a65194
parent4997d66f385e5e216c98ee57f6fe6d82cacf929c
Script for finding unneeded headers

The script does the following:

  All .cpp and .h files in the current directory and subdirectories
  are checked to see which include statements could be omitted without
  causing a build error.

Many of these omissions would not be desired. For example, currently
if you don't include Undo.h in Undo.cpp, there is no error because
Undo.h is included in Cursor.h which is included in Undo.cpp. But
clearly we do want to include Undo.h in Undo.cpp.

See #6305.
development/tools/header_check.sh [new file with mode: 0644]