-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.astyle
More file actions
27 lines (19 loc) · 1.61 KB
/
.astyle
File metadata and controls
27 lines (19 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Insert space padding between a header (e.g. 'if', 'for', 'while'...) and the following paren. Any end of line comments will remain in the original column, if possible. This can be used with unpad-paren to remove unwanted spaces.
-H
# Attach a pointer or reference operator (*, &, or ^) to either the variable type (left) or variable name (right), or place it between the type and name (middle). The spacing between the type and name will be preserved, if possible. This option is for C/C++, C++/CLI, and C# files.
-k1
# Add brackets to unbracketed one line conditional statements (e.g. 'if', 'for', 'while'...). The statement must be on a single line. The brackets will be added according to the currently requested predefined style or bracket type. If no style or bracket type is requested the brackets will be attached. If --add-one-line-brackets is also used the result will be one line brackets.
-j
# 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. It may not produce the expected results if convert-tabs is used when changing spaces per tab. Tabs are not replaced in quotes.
-C
# Indent 4 spaces
-s4
# Specify a file or sub directory #### to be excluded from processing.
--exclude="runtime/src/main/jni/include"
--exclude="runtime/src/main/jni/v8_inspector"
# Allow processing to continue if there are errors in the "exclude=###" options.
-xi
# Do not retain a backup of the original file. The original file is purged after it is formatted.
-n
# Java style uses attached brackets.
--style=java