Merge pull request #273 from matthiaskrgr/strip_whitespace
runastyle: add line which strips trailing whitspaces from cfg files (and run it on the files)
This commit is contained in:
commit
430d6d398c
18
cfg/std.cfg
18
cfg/std.cfg
|
@ -27,21 +27,21 @@
|
||||||
<arg nr="2"><not-uninit/><not-bool/><valid>0-</valid></arg>
|
<arg nr="2"><not-uninit/><not-bool/><valid>0-</valid></arg>
|
||||||
<arg nr="3"><not-null/><not-uninit/></arg>
|
<arg nr="3"><not-null/><not-uninit/></arg>
|
||||||
</function>
|
</function>
|
||||||
<function name="fsetpos">
|
<function name="fsetpos">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1"><not-null/><not-uninit/></arg>
|
<arg nr="1"><not-null/><not-uninit/></arg>
|
||||||
<arg nr="2"><not-null/><not-uninit/></arg>
|
<arg nr="2"><not-null/><not-uninit/></arg>
|
||||||
</function>
|
</function>
|
||||||
<function name="fputc">
|
<function name="fputc">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1"><not-null/><not-uninit/><not-bool/><valid>0-</valid></arg>
|
<arg nr="1"><not-null/><not-uninit/><not-bool/><valid>0-</valid></arg>
|
||||||
<arg nr="2"><not-null/><not-uninit/></arg>
|
<arg nr="2"><not-null/><not-uninit/></arg>
|
||||||
</function>
|
</function>
|
||||||
<function name="fputs">
|
<function name="fputs">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1"><not-null/><not-uninit/></arg>
|
<arg nr="1"><not-null/><not-uninit/></arg>
|
||||||
<arg nr="2"><not-null/><not-uninit/></arg>
|
<arg nr="2"><not-null/><not-uninit/></arg>
|
||||||
</function>
|
</function>
|
||||||
|
|
|
@ -35,3 +35,5 @@ astyle $style $options --recursive "samples/*.cpp"
|
||||||
# Convert tabs to spaces.. even in strings
|
# Convert tabs to spaces.. even in strings
|
||||||
# sed -i "s/\t/ /g" test/test*.cpp
|
# sed -i "s/\t/ /g" test/test*.cpp
|
||||||
|
|
||||||
|
# strip useless whitespaces from config files
|
||||||
|
sed -i "s/\ $//" cfg/*
|
||||||
|
|
Loading…
Reference in New Issue