Created
December 6, 2015 17:21
-
-
Save N0NB/89e9e4b3fd3a6294d45e to your computer and use it in GitHub Desktop.
My 'other' astylerc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# astylerc--custom options for astyle | |
# K&R style formatting/indenting uses Linux brackets. | |
style=linux | |
# Indent using tabs of 8 spaces. | |
# indent=tab=8 | |
indent=spaces=4 | |
# Indent C++ comments beginning in column one. | |
# indent-col1-comments | |
# Set the minimal indent that is added when a header is built of multiple lines. | |
# 0 - no minimal indent. The lines will be aligned with the paren on the preceding line. | |
# 1 - indent at least one additional indent. | |
# 2 - indent at least two additional indents. | |
# 3 - indent at least one-half an additional indent. This is intended for large indents (e.g. 8). | |
min-conditional-indent=0 | |
# Pad empty lines around header blocks (e.g. 'if', 'for', 'while'...). | |
break-blocks | |
# Insert space padding around operators. | |
pad-oper | |
# Remove extra space padding around parenthesis on the inside and outside. | |
unpad-paren | |
# Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...). | |
pad-header | |
# Delete empty lines within a function or method. | |
#delete-empty-lines | |
# Attach a pointer operator (*) to name (name) and reference operator (&) | |
# to type (type). | |
align-pointer=name | |
align-reference=type | |
# 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 | |
# Converts tabs into spaces in the non-indentation part of the line. The number | |
# of spaces inserted will maintain the spacing of the tab. The current setting | |
# for spaces per tab is used. Tabs are not replaced in quotes. | |
# convert-tabs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one is from my laptop. Not sure what I used it for.