* src/evtgba/evtgbaiter.hh, src/ltlast/formula.hh,

src/ltlast/refformula.hh, src/ltlenv/defaultenv.hh,
src/misc/bareword.hh, src/tgba/succiter.hh,
src/tgba/tgbabddfactory.hh, src/tgba/tgbareduc.hh,
src/tgbaalgos/dupexp.hh, src/tgbaalgos/emptiness_stats.hh,
src/tgbaalgos/ltl2tgba_fm.hh, src/tgbaalgos/ltl2tgba_lacim.hh,
src/tgbaalgos/reductgba_sim.hh, src/tgbaalgos/tau03opt.hh: Add
or fix include guards.
* src/sanity/includes.test: Check the presence of the include
guard.
This commit is contained in:
Alexandre Duret-Lutz 2005-01-03 10:20:26 +00:00
parent 93f77c5782
commit 000c041a95
16 changed files with 84 additions and 55 deletions

View file

@ -8,6 +8,19 @@ rm -f failures
for file in `find "$INCDIR" -name "${1-*}.hh" -type f -print |
sed "s,$INCDIR/,,g"`; do
b=`echo "$file" | tr '[/.a-z]' '[__A-Z]'`
if grep "[ ]*#.*def.* SPOT_$b\$" "$INCDIR/$file" >/dev/null; then
:
elif grep 'GNU Bison' "$INCDIR/$file" >/dev/null; then
:
else
echo "Missing, or incorrect include guard." >&2
echo "FAIL: $file"
echo " $file" >> failures
continue
fi
cat >incltest.cc <<EOF
// Include the file twice, so we detect missing inclusion guards.
#include <$file>