Changeset 31791 in webkit


Ignore:
Timestamp:
Apr 10, 2008 5:45:17 PM (16 years ago)
Author:
alp@webkit.org
Message:

2008-03-12 Michael Emmel <mike.emmel@gmail.com>

Reviewed by Alp Toker.

http://bugs.webkit.org/show_bug.cgi?id=18397
Fix leaving spaces before parens in functions

  • WebKitTools/Scripts/wkstyle:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r31681 r31791  
     12008-03-12  Michael Emmel  <mike.emmel@gmail.com>
     2
     3        Reviewed by Alp Toker.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=18397
     6        Fix leaving spaces before parens in functions
     7
     8        * WebKitTools/Scripts/wkstyle:
     9
    1102008-04-07  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
    211
  • trunk/WebKitTools/Scripts/wkstyle

    r17575 r31791  
    2626# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727
    28 astyle \
     28cmdcpp="astyle \
     29--unpad=paren \
    2930--style=linux \
     31--brackets=linux \
    3032--indent=spaces=4 \
    31 --convert-tabs \
    32 $@
     33--indent-switches \
     34--convert-tabs"
     35
     36cmdh="astyle \
     37--unpad=paren \
     38--style=linux \
     39--brackets=break \
     40--indent=spaces=4 \
     41--convert-tabs"
    3342
    3443#astyle does not support unpadding so we use sed
     
    3645do
    3746echo $i
     47
     48ext=`echo $i|awk -F . '{print $NF}'`
     49
     50cmd=$cmdcpp
     51
     52if [ $ext == "h" ] ; then
     53    cmd=$cmdh
     54fi
     55
     56$cmd $i
     57
    3858#first print the changes we are making
    3959sed  -n -e '
     
    6080s/\n{/ {/
    6181}
     82#fixup extra tab in constructor initalizer
     83/^ \+,/{s/^    //}
     84/^ \+:/{s/^    //}
    6285' $i > $i.sed
    6386mv $i.sed $i
Note: See TracChangeset for help on using the changeset viewer.