Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
This commit is contained in:
parent
bc6ae499dc
commit
8f22e4924c
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
# If project management wishes to take a newer astyle version into use
|
# If project management wishes to take a newer astyle version into use
|
||||||
# just change this string to match the start of astyle version string.
|
# just change this string to match the start of astyle version string.
|
||||||
ASTYLE_VERSION="Artistic Style Version 2.03"
|
ASTYLE_VERSION="Artistic Style Version 2.05.1"
|
||||||
ASTYLE="astyle"
|
ASTYLE="astyle"
|
||||||
|
|
||||||
DETECTED_VERSION=`$ASTYLE --version 2>&1`
|
DETECTED_VERSION=`$ASTYLE --version 2>&1`
|
||||||
|
@ -17,7 +17,7 @@ if [[ "$DETECTED_VERSION" != ${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="--options=none --pad-header --unpad-paren --suffix=none --convert-tabs"
|
options="--options=none --pad-header --unpad-paren --suffix=none --convert-tabs --attach-inlines"
|
||||||
|
|
||||||
$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 Script to run AStyle on 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 --convert-tabs
|
@SET OPTIONS=--pad-header --unpad-paren --suffix=none --convert-tabs --attach-inlines
|
||||||
|
|
||||||
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