Changeset 31791 in webkit
- Timestamp:
- Apr 10, 2008 5:45:17 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r31681 r31791 1 2008-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 1 10 2008-04-07 Jan Michael Alonzo <jmalonzo@unpluggable.com> 2 11 -
trunk/WebKitTools/Scripts/wkstyle
r17575 r31791 26 26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 28 astyle \ 28 cmdcpp="astyle \ 29 --unpad=paren \ 29 30 --style=linux \ 31 --brackets=linux \ 30 32 --indent=spaces=4 \ 31 --convert-tabs \ 32 $@ 33 --indent-switches \ 34 --convert-tabs" 35 36 cmdh="astyle \ 37 --unpad=paren \ 38 --style=linux \ 39 --brackets=break \ 40 --indent=spaces=4 \ 41 --convert-tabs" 33 42 34 43 #astyle does not support unpadding so we use sed … … 36 45 do 37 46 echo $i 47 48 ext=`echo $i|awk -F . '{print $NF}'` 49 50 cmd=$cmdcpp 51 52 if [ $ext == "h" ] ; then 53 cmd=$cmdh 54 fi 55 56 $cmd $i 57 38 58 #first print the changes we are making 39 59 sed -n -e ' … … 60 80 s/\n{/ {/ 61 81 } 82 #fixup extra tab in constructor initalizer 83 /^ \+,/{s/^ //} 84 /^ \+:/{s/^ //} 62 85 ' $i > $i.sed 63 86 mv $i.sed $i
Note: See TracChangeset
for help on using the changeset viewer.