use SPOT_ASSERT instead of assert
For #184. * spot/graph/graph.hh, spot/kripke/kripkegraph.hh, spot/misc/bitvect.hh, spot/misc/common.hh, spot/misc/fixpool.hh, spot/misc/mspool.hh, spot/misc/timer.hh, spot/tl/formula.hh, spot/twa/acc.hh, spot/twa/taatgba.hh, spot/twa/twa.hh, spot/twa/twagraph.hh, spot/twaalgos/emptiness_stats.hh, spot/twaalgos/mask.hh, spot/twaalgos/ndfs_result.hxx, spot/twaalgos/sccinfo.hh, spot/twaalgos/translate.hh: Replace assert() by SPOT_ASSERT(), or an exception, or nothing, depending on the case. * tests/sanity/style.test: Flag all asserts in headers. * HACKING: Discuss assertions.
This commit is contained in:
parent
9f7bf5ab2d
commit
20cf43b3ea
19 changed files with 163 additions and 124 deletions
|
|
@ -300,8 +300,11 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
|
|||
*/priv/*|*/bin/*);;
|
||||
*)
|
||||
$GREP '#.*include.*priv/' $tmp &&
|
||||
diag 'Do not include private headers in public headers.'
|
||||
diag 'Do not include private headers in public headers.'
|
||||
$GREP -v '#' $tmp | $GREP 'assert[ ]*(.*)' &&
|
||||
diag 'Use SPOT_ASSERT() instead of assert() in public headers.'
|
||||
;;
|
||||
|
||||
esac
|
||||
;;
|
||||
*.cc)
|
||||
|
|
@ -312,8 +315,8 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
|
|||
$GREP '^[ ]*class[ ]' $tmp &&
|
||||
diag 'Private definitions must be in anonymous namespace.'
|
||||
fi
|
||||
e$GREP ' ' $tmp &&
|
||||
diag 'Use spaces instead of tabular.'
|
||||
e$GREP ' ' $tmp &&
|
||||
diag 'Use spaces instead of tabs.'
|
||||
;;
|
||||
esac
|
||||
case $file in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue