* src/ltlvisit/apcollect.hh: Fix include guard. Report from Denis.
* src/sanity/includes.test: Include files twice to check include guards.
This commit is contained in:
parent
11762deafc
commit
42fc2b772f
3 changed files with 10 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
2004-08-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2004-08-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* src/ltlvisit/apcollect.hh: Fix include guard. Report from Denis.
|
||||||
|
* src/sanity/includes.test: Include files twice to check include
|
||||||
|
guards.
|
||||||
|
|
||||||
* src/tgbatest/ltl2tgba.cc (main): Fix another gcc warning in case
|
* src/tgbatest/ltl2tgba.cc (main): Fix another gcc warning in case
|
||||||
assert() is disabled.
|
assert() is disabled.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
// 02111-1307, USA.
|
// 02111-1307, USA.
|
||||||
|
|
||||||
#ifndef SPOT_LTLVISIT_APCOLLECT_HH
|
#ifndef SPOT_LTLVISIT_APCOLLECT_HH
|
||||||
# define SPOT_LTLVISIT_AP_COLLECT_HH
|
# define SPOT_LTLVISIT_APCOLLECT_HH
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "ltlvisit/postfix.hh"
|
#include "ltlvisit/postfix.hh"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@ rm -f failures
|
||||||
|
|
||||||
for file in `find "$INCDIR" -name "${1-*}.hh" -type f -print |
|
for file in `find "$INCDIR" -name "${1-*}.hh" -type f -print |
|
||||||
sed "s,$INCDIR/,,g"`; do
|
sed "s,$INCDIR/,,g"`; do
|
||||||
echo "#include <$file>" > incltest.cc
|
cat >incltest.cc <<EOF
|
||||||
|
// Include the file twice, so we detect missing inclusion guards.
|
||||||
|
#include <$file>
|
||||||
|
#include <$file>
|
||||||
|
EOF
|
||||||
if $CXX $CPPFLAGS $CXXFLAGS -c incltest.cc; then
|
if $CXX $CPPFLAGS $CXXFLAGS -c incltest.cc; then
|
||||||
echo "PASS: $file"
|
echo "PASS: $file"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue