use <cassert> and not <assert.h> in C++
* spot/mc/unionfind.cc, spot/twacube/cube.cc, spot/twacube_algos/convert.cc: Includes code. * tests/sanity/style.test: Add a test for this.
This commit is contained in:
parent
826577c81e
commit
ba0c8e8a29
4 changed files with 11 additions and 6 deletions
|
|
@ -327,6 +327,8 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
|
|||
$GREP '#.*include.*[<"]config.h[">]' $tmp &&
|
||||
diag 'Do not include config.h in header files.'
|
||||
esac
|
||||
$GREP '[<"]assert.h[">]' $tmp &&
|
||||
diag 'include <cassert> in C++ files'
|
||||
;;
|
||||
*.cc)
|
||||
if $GREP 'namespace$' $tmp >/dev/null; then
|
||||
|
|
@ -346,7 +348,10 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
|
|||
else
|
||||
diag "*.cc files should include "'"config.h"'
|
||||
fi;;
|
||||
esac;;
|
||||
esac
|
||||
$GREP '[<"]assert.h[">]' $tmp &&
|
||||
diag 'include <cassert> in C++ files'
|
||||
;;
|
||||
esac
|
||||
case $file in
|
||||
*/bin/*|*.cc);;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue