| 1 |
# Configuration for Artistic Style |
| 2 |
# see https://astyle.sourceforge.net/astyle.html |
| 3 |
|
| 4 |
####################### |
| 5 |
# Brace Style Options # |
| 6 |
####################### |
| 7 |
|
| 8 |
# use Allman style for braces |
| 9 |
--style=allman |
| 10 |
|
| 11 |
############### |
| 12 |
# Tab Options # |
| 13 |
############### |
| 14 |
|
| 15 |
# indent using 4 spaces |
| 16 |
--indent=spaces=4 |
| 17 |
|
| 18 |
####################### |
| 19 |
# Indentation Options # |
| 20 |
####################### |
| 21 |
|
| 22 |
# indent access modifiers one half indent |
| 23 |
--indent-modifiers |
| 24 |
|
| 25 |
# indent switch cases to the switch block |
| 26 |
--indent-switches |
| 27 |
|
| 28 |
# indent preprocessor blocks |
| 29 |
--indent-preproc-block |
| 30 |
|
| 31 |
# indent preprocessor defines |
| 32 |
--indent-preproc-define |
| 33 |
|
| 34 |
# indent C++ comments |
| 35 |
--indent-col1-comments |
| 36 |
|
| 37 |
################### |
| 38 |
# Padding Options # |
| 39 |
################### |
| 40 |
|
| 41 |
# insert space padding around operators |
| 42 |
--pad-oper |
| 43 |
|
| 44 |
# insert space between if/for/while... and the following parentheses |
| 45 |
--pad-header |
| 46 |
|
| 47 |
# attach the pointer to the variable type (left) |
| 48 |
--align-pointer=type |
| 49 |
|
| 50 |
# attach the reference to the variable type (left) |
| 51 |
--align-reference=type |
| 52 |
|
| 53 |
###################### |
| 54 |
# Formatting Options # |
| 55 |
###################### |
| 56 |
|
| 57 |
# add braces to unbraced one line conditional statements |
| 58 |
--add-braces |
| 59 |
|
| 60 |
# convert tabs to spaces |
| 61 |
--convert-tabs |
| 62 |
|
| 63 |
# closes whitespace between the ending angle brackets of template definitions |
| 64 |
--close-templates |
| 65 |
|
| 66 |
################# |
| 67 |
# Other Options # |
| 68 |
################# |
| 69 |
|
| 70 |
# do not create backup files |
| 71 |
--suffix=none |
| 72 |
|
| 73 |
# preserve the original file date |
| 74 |
--preserve-date |
| 75 |
|
| 76 |
# display only the files that have been formatted |
| 77 |
--formatted |
| 78 |
|
| 79 |
# for the linux (LF) line end style |
| 80 |
--lineend=linux |