diff options
author | XhmikosR <xhmikosr@gmail.com> | 2016-04-03 18:23:36 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2016-04-09 10:20:45 +0300 |
commit | 8d6f89420ae9d9ba17825fc7e834d2cf78b6313b (patch) | |
tree | a7d3a3f199d7e5fde1ccde891c8bc9837167319e /contrib | |
parent | 9caca652181f6a8b568e848929bde2943da1f822 (diff) |
Update run_astyle.bat.
Add `keep-one-line-blocks` only for headers.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/astyle.ini | 1 | ||||
-rwxr-xr-x | contrib/run_astyle.bat | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/astyle.ini b/contrib/astyle.ini index cb0d3a09d..f3cb4528b 100644 --- a/contrib/astyle.ini +++ b/contrib/astyle.ini @@ -26,7 +26,6 @@ --align-pointer=type --align-reference=type --close-templates --add-brackets ---keep-one-line-blocks --convert-tabs --lineend=windows --preserve-date --suffix=none diff --git a/contrib/run_astyle.bat b/contrib/run_astyle.bat index e90f69bfb..08e4b05d5 100755 --- a/contrib/run_astyle.bat +++ b/contrib/run_astyle.bat @@ -1,5 +1,5 @@ @ECHO OFF -REM (C) 2012-2015 see Authors.txt +REM (C) 2012-2016 see Authors.txt REM REM This file is part of MPC-HC. REM @@ -30,7 +30,8 @@ CALL :SubCheckVer || GOTO End TITLE Running astyle using %FILE_DIR%astyle.ini IF "%~1" == "" ( - astyle -r --options=astyle.ini ..\*.h ..\*.cpp + astyle -r --options=astyle.ini ..\*.cpp + astyle -r --options=astyle.ini --keep-one-line-blocks ..\*.h ) ELSE ( FOR %%G IN (%*) DO astyle --options=astyle.ini %%G ) |