Suggest using bddtrue and bddfalse instead of bdd_true() and

bdd_false().

* src/sanity/style.test: Catch uses of bdd_true() or bdd_false().
This commit is contained in:
Alexandre Duret-Lutz 2010-11-24 21:03:14 +01:00
parent 2ba963200a
commit 57d4df47dd
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2010-11-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Suggest using bddtrue and bddfalse instead of bdd_true() and
bdd_false().
* src/sanity/style.test: Catch uses of bdd_true() or bdd_false().
2010-11-20 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix some struct/class missmatches reported by clang.

View file

@ -171,6 +171,9 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
grep 'Sgi::[^h]' $tmp &&
diag 'Sgi:: is for hash and hash_map only'
egrep 'bdd_(false|true)[ ]*\(' $tmp &&
diag 'Use bddfalse and bddtrue instead of bdd_false() and bdd_true()'
res=`perl -ne '$/ = undef;
print "$&\n"
while /if \((.*)(\s*==\s*0)?\)\s*delete(\[\])?\s+\1;(?!\s+else)/g' $tmp`