|
17 | 17 | # mostly conforms to that of the Juce library |
18 | 18 | # (www.juce.com/wiki/index.php/Coding_Standards). |
19 | 19 | # |
20 | | -# The biggest difference is with parentheses after functions: Juce uses "foo |
21 | | -# (bar)" except when there's no arguments (e.g. "foo()"), whereas here we |
22 | | -# enforce "foo(bar)" and "foo()." |
23 | | -# |
24 | 20 | # Some documentation of the options is provided here for convenience. For full |
25 | 21 | # options documentation, go to astyle.sourceforge.net/astyle.html. |
26 | 22 |
|
@@ -56,15 +52,19 @@ min-conditional-indent=0 |
56 | 52 | # --don't limit this---->bar); |
57 | 53 | max-instatement-indent=80 |
58 | 54 |
|
59 | | -# Remove spaces in and around parentheses (except in front of "headers;" see the |
60 | | -# next rule for that exception). |
61 | | -# Note, this differs from the Juce style! |
62 | | -# Example: foo ( bar, baz ); -> foo(bar, baz);) |
63 | | -unpad-paren |
| 55 | +# Insert space padding around the first parenthesis in a series on the outside only. |
| 56 | +# Parentheses that are empty will not be padded. |
| 57 | +--pad-first-paren-out |
64 | 58 |
|
65 | 59 | # insert a space after if, while, for, etc. |
66 | 60 | --pad-header |
67 | 61 |
|
| 62 | +# Insert space padding around operators. |
| 63 | +--pad-oper |
| 64 | + |
| 65 | +# Pad empty lines around header blocks (e.g. 'if', 'for', 'while'...). |
| 66 | +--break-blocks |
| 67 | + |
68 | 68 | # Pointer/reference operators go next to the type (on the left). |
69 | 69 | align-pointer=type |
70 | 70 |
|
0 commit comments