* src/misc/version.cc: Fix trailing whitespace.
* src/sanity/style.test: Diagnose trailing whitespace.
This commit is contained in:
parent
8c0b085d73
commit
7fce2b2a95
3 changed files with 9 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
|
|
@ -25,7 +25,7 @@ namespace spot
|
|||
{
|
||||
static const char version_[] = VERSION;
|
||||
|
||||
const char*
|
||||
const char*
|
||||
version()
|
||||
{
|
||||
return version_;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,10 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
|
|||
|
||||
fail=false
|
||||
|
||||
sed 's,//.*,,' < $file > $tmp
|
||||
sed 's,[ ]*//.*,,' < $file > $tmp
|
||||
|
||||
grep '[ ]$' $tmp &&
|
||||
diag 'Trailing space or tab.'
|
||||
|
||||
grep '[ ]if(' $tmp &&
|
||||
diag 'Missing space after "if"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue