astyle: Added --convert-tabs option
This commit is contained in:
parent
1951d1cdc5
commit
d7c7f8c9af
|
@ -14,7 +14,7 @@ if [[ "`astyle --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
style="--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0"
|
style="--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0"
|
||||||
options="--pad-header --unpad-paren --suffix=none"
|
options="--pad-header --unpad-paren --suffix=none --convert-tabs"
|
||||||
|
|
||||||
astyle $style $options cli/*.cpp
|
astyle $style $options cli/*.cpp
|
||||||
astyle $style $options cli/*.h
|
astyle $style $options cli/*.h
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
REM A script to run Astyle for the sources
|
REM A script to run Astyle for the sources
|
||||||
|
|
||||||
SET STYLE=--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0
|
SET STYLE=--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0
|
||||||
SET OPTIONS=--pad-header --unpad-paren --suffix=none
|
SET OPTIONS=--pad-header --unpad-paren --suffix=none --convert-tabs
|
||||||
|
|
||||||
astyle %STYLE% %OPTIONS% cli/*.cpp
|
astyle %STYLE% %OPTIONS% cli/*.cpp
|
||||||
astyle %STYLE% %OPTIONS% cli/*.h
|
astyle %STYLE% %OPTIONS% cli/*.h
|
||||||
|
|
Loading…
Reference in New Issue