Skip to content

Commit 26c8cdb

Browse files
committed
Add astyle config file which specifies the code formatting to use
1 parent 80a5a19 commit 26c8cdb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

misc/astyle.cfg

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#astyle config: from the scl root dir, use
2+
# astyle --options=misc/astyle.cfg "src/*.c" "src/*.cc" "include/*.h"
3+
# in the above line, the double quotes *are* necessary
4+
5+
# DO NOT run astyle on flex/bison input such as expparse.y and expscan.l!
6+
7+
suffix=none #don't create backup files
8+
9+
style=java #compact bracket style
10+
11+
indent=spaces=4
12+
13+
indent-classes
14+
indent-switches
15+
indent-namespaces
16+
pad-oper #pad (space) around operators
17+
pad-paren-in #pad inside parenthesis
18+
unpad-paren #remove parenthesis padding other than requested above
19+
20+
add-brackets #add brackets on one-line conditionals
21+
convert-tabs #convert all tabs to spaces
22+
align-pointer=middle #char * foo
23+
24+
lineend=linux #lines end with LF (linux), not CRLF (windows)
25+
26+
recursive
27+

0 commit comments

Comments
 (0)