From f0559daeecbda617b53763bc8796006274779ea5 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Mon, 21 Oct 2013 11:07:13 -0400 Subject: Add wtperf to the s_style pass. --- dist/s_style | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/s_style b/dist/s_style index d0fa87c17f0..61c2dab389c 100644 --- a/dist/s_style +++ b/dist/s_style @@ -24,7 +24,8 @@ for f in `find examples ext src test -name '*.[ci]'`; do } done -for f in `find examples ext src test -name '*.[chisy]' -o -name '*.in' | +for f in \ + `find bench/wtperf examples ext src test -name '*.[chisy]' -o -name '*.in' | sed '/Makefile.in/d'`; do if grep "^[^}]*while (0);" $f > $t; then echo "$f: while (0) has trailing semi-colon" @@ -44,7 +45,8 @@ for f in `find examples ext src test -name '*.[chisy]' -o -name '*.in' | # Direct calls to functions we're not supposed to use in the library. # We don't check for all of them, just a few of the common ones. - if ! expr "$f" : 'examples/.*' > /dev/null && + if ! expr "$f" : 'bench/.*' > /dev/null && + ! expr "$f" : 'examples/.*' > /dev/null && ! expr "$f" : 'ext/.*' > /dev/null && ! expr "$f" : 'test/.*' > /dev/null && ! expr "$f" : '.*/utilities/.*' > /dev/null; then @@ -71,7 +73,8 @@ for f in `find examples ext src test -name '*.[chisy]' -o -name '*.in' | fi # Declaration of an integer return variable. - if ! expr "$f" : 'examples/.*' > /dev/null && + if ! expr "$f" : 'bench/.*' > /dev/null && + ! expr "$f" : 'examples/.*' > /dev/null && ! expr "$f" : 'test/.*' > /dev/null && ! expr "$f" : 'ext/.*' > /dev/null; then egrep -w ret $f | egrep 'int.*[, ]ret[,;]' > $t @@ -132,7 +135,7 @@ test -s $t && { } # Check for common typos (Wikipedia's list). -find examples ext src test \ +find bench examples ext src test \ -name '*.[chisy]' -o -name '*.in' -o -name '*.dox' | xargs egrep -w 'a a|an an|and and|are are|be be|by by|for for|from from|if if|in in|is is|it it|of of|the the|this this|to to|was was|were were|when when|with with|a an|an a|a the|the a' > $t test -s $t && { -- cgit v1.2.1