1
0
mirror of synced 2025-04-18 23:24:01 +03:00

Adding .gitignore, AStyle.

This commit is contained in:
nzeemin 2015-03-18 17:11:11 +03:00
parent 4782e1b39a
commit 6b4e3ef145
3 changed files with 44 additions and 0 deletions

5
!astyle.bat Normal file
View File

@ -0,0 +1,5 @@
@echo off
c:\bin\astyle.exe -n --options=astyle-cpp-options emubase\*.h emubase\*.cpp
c:\bin\astyle.exe -n --options=astyle-cpp-options Util\*.h Util\*.cpp
c:\bin\astyle.exe -n --options=astyle-cpp-options *.h --exclude=Resource.h --exclude=Version.h --exclude=stdafx.h
c:\bin\astyle.exe -n --options=astyle-cpp-options *.cpp --exclude=stdafx.cpp

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
/Debug
/Product
/Release
/*.ncb
/*.suo
*.user
/*.bin

32
astyle-cpp-options Normal file
View File

@ -0,0 +1,32 @@
## Formatting options for
## Astyle - Source code indenter, formatter, and beautifier for C, C++, and Java Source Code
## http://astyle.sourceforge.net/
# Indent as C/C++
--mode=c
# Use CRLF line end style
--lineend=windows
# Allman style formatting/indenting uses broken brackets
--style=break
# Indent using 4 spaces per indent
--indent=spaces=4
--indent-namespaces
# Indent 'case X:' blocks from the 'case X:' headers. Case statements not enclosed in blocks are NOT indented.
--indent-cases
--min-conditional-indent=0
--max-instatement-indent=8
# Insert space padding around operators
--pad-oper
# Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...)
--pad-header
--break-closing-brackets
# Don't break one-line blocks
--keep-one-line-blocks
# Don't break complex statements and multiple statements residing on a single line
--keep-one-line-statements