* 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).
This commit is contained in:
parent
b10727f139
commit
5cceccca06
2 changed files with 7 additions and 1 deletions
|
|
@ -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.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue