Skip to content

Commit

Permalink
runastyle: add line which strips trailing whitspaces from cfg files (…
Browse files Browse the repository at this point in the history
…and run it on the files)
  • Loading branch information
matthiaskrgr committed Mar 21, 2014
1 parent 30006cf commit e8dd3e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
<arg nr="2"><not-uninit/><not-bool/><valid>0-</valid></arg>
<arg nr="3"><not-null/><not-uninit/></arg>
</function>
<function name="fsetpos">
<noreturn>false</noreturn>
<leak-ignore/>
<function name="fsetpos">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
</function>
<function name="fputc">
<noreturn>false</noreturn>
<leak-ignore/>
<function name="fputc">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/><not-bool/><valid>0-</valid></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
</function>
<function name="fputs">
<noreturn>false</noreturn>
<leak-ignore/>
<function name="fputs">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
</function>
Expand Down
2 changes: 2 additions & 0 deletions runastyle
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ astyle $style $options --recursive "samples/*.cpp"
# Convert tabs to spaces.. even in strings
# sed -i "s/\t/ /g" test/test*.cpp

# strip useless whitespaces from config files
sed -i "s/\ $//" cfg/*

0 comments on commit e8dd3e8

Please sign in to comment.