Files
wxWidgets/misc/scripts/check_allheaders.sh
T
Lauri Nurmi f88a0a933d Add a script and CI action for tests/allheaders.h
Check that all headers are either #included or mentioned
in tests/allheaders.h.
2025-01-31 17:32:00 +01:00

16 lines
284 B
Bash
Executable File

#!/bin/bash
cd $(dirname "$0")/../..
rc=0
for h in include/wx/*.h ; do
header=wx/$(basename "$h")
if ! grep -q "$header" tests/allheaders.h ; then
echo "ERROR - <$header> not present in tests/allheaders.h"
rc=$((rc+1))
fi
done
exit $rc