diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-11 19:44:09 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-11 19:44:09 +0400 |
commit | 1525cfe1df7d0107485e5f067631631e7aaecf77 (patch) | |
tree | b02ab30b03611dcdac1d77795b3311bce7565034 | |
parent | 0b8c73a5e3b787e8919cac6dc358e78db73a6b0e (diff) |
add astyle.bat with the current switches and the new ones for later
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5090 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | docs/astyle.bat | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/docs/astyle.bat b/docs/astyle.bat new file mode 100644 index 000000000..a357ba65e --- /dev/null +++ b/docs/astyle.bat @@ -0,0 +1,46 @@ +@ECHO OFF
+SETLOCAL
+
+PUSHD %~dp0
+
+astyle.exe --version 1>&2 2>NUL
+
+IF %ERRORLEVEL% NEQ 0 (
+ ECHO ERROR: Astyle wasn't found!
+ ECHO Visit http://astyle.sourceforge.net/ for download and details.
+ GOTO END
+)
+
+rem current command
+astyle.exe^
+ --indent=force-tab --indent-switches --indent-namespaces --indent-col1-comments^
+ --pad-header --lineend=windows --preserve-date^
+ --keep-one-line-blocks --keep-one-line-statements^
+ --suffix=none --ignore-exclude-errors --ignore-exclude-errors-x --recursive^
+ --exclude=FileVersionInfo.cpp --exclude=FileVersionInfo.h --exclude=LineNumberEdit.cpp^
+ --exclude=LineNumberEdit.h --exclude=Struct.h --exclude=atl --exclude=avisynth^
+ --exclude=detours --exclude=dx --exclude=lglcd --exclude=ogg --exclude=qt^
+ --exclude=realmedia --exclude=vd2 --exclude=winddk --exclude=inttypes.h^
+ --exclude=MediaInfoDLL.h --exclude=unrar.h --exclude=Version.h --exclude=Version_rev.h^
+ --exclude=thirdparty --exclude=resource.h --exclude=simd.h --exclude=simd_common.h^
+ --exclude=libmpeg2.h --exclude=libmpeg2.cpp --exclude=attributes.h --exclude=MPEG2Dec.h^
+ --exclude=MPEG2Dec.cpp --exclude=idctref.cpp --exclude=idctfpu.cpp --exclude=vd_asm.cpp^
+ --exclude=vd.cpp --exclude=vd.h --exclude=deinterlace.cpp --exclude=mmintrin64.c^
+ --exclude=simd_instructions.h --exclude=DeCSS --exclude=ffImgfmt.cpp --exclude=ffImgfmt.h^
+ --exclude=H264RandomAccess.cpp --exclude=H264RandomAccess.h --exclude=array_allocator.h^
+ --exclude=char_t.h ..\*.h ..\*.cpp
+
+rem TODO: use --indent=spaces=4 --style=kr --add-brackets --pad-header --pad-oper --convert-tabs
+rem maybe TODO: --align-pointer=type --align-reference=type: there is a problem when the type isn't known like *dump
+rem --unpad-paren: HANDLE ()-> HANDLE() while the space should be kept
+
+IF %ERRORLEVEL% NEQ 0 (
+ ECHO.
+ ECHO ERROR: Something went wrong!
+)
+
+:END
+POPD
+PAUSE
+ENDLOCAL
+EXIT /B
|