Adding .gitignore, AStyle.
This commit is contained in:
parent
4782e1b39a
commit
6b4e3ef145
5
!astyle.bat
Normal file
5
!astyle.bat
Normal 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
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/Debug
|
||||
/Product
|
||||
/Release
|
||||
/*.ncb
|
||||
/*.suo
|
||||
*.user
|
||||
/*.bin
|
32
astyle-cpp-options
Normal file
32
astyle-cpp-options
Normal 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
|
Loading…
x
Reference in New Issue
Block a user