diff --git a/ChangeLog b/ChangeLog index d29574b35..993166c31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-07 Alexandre Duret-Lutz + + * src/sanity/style.test: Strip all strings before checking the + file, so that strings are not checked for our C++ style. + Reported by Denis (with a chainsaw). + 2005-02-07 Denis Poitrenaud * src/misc/optionmap.cc, src/misc/optionmap.hh: Typo (Hummm). diff --git a/src/sanity/style.test b/src/sanity/style.test index 0435a41d3..ad29f8a61 100755 --- a/src/sanity/style.test +++ b/src/sanity/style.test @@ -38,7 +38,7 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do fail=false - sed 's,[ ]*//.*,,' < $file > $tmp + sed 's,[ ]*//.*,,;s,"[^"]*","",g' < $file > $tmp grep '[ ]$' $tmp && diag 'Trailing whitespace.'