Skip to content

Commit 5128db3

Browse files
committed
Update the Astyle config
1 parent 2ca10c1 commit 5128db3

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

tools/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Developers tools
2+
================
3+
4+
5+
Astyle
6+
------
7+
8+
https://astyle.sourceforge.net/astyle.html
9+
10+
Usage (from source root):
11+
12+
astyle --project=tools/astyle.cfg -I path/to/file.cpp
13+
14+
or
15+
16+
astyle --project=tools/astyle.cfg -I -r 'module/*.cpp' 'module/*.h'

_astylerc renamed to tools/astyle.cfg

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# astyle version 3.1
2+
# astyle --project=tools/astyle.cfg -r -I 'src/*.cpp' 'src/*.h'
23

3-
--max-code-length=96
4+
--max-code-length=120
45

56
# Indents
6-
--convert-tabs
7-
--indent=spaces=4
7+
--indent=tab
88
--indent-col1-comments
9-
--max-instatement-indent=40
109
--min-conditional-indent=2
1110
--indent-preproc-block
1211
--indent-preproc-define
@@ -28,4 +27,7 @@
2827
--pad-header
2928
--unpad-paren
3029

31-
--align-pointer=name
30+
--align-pointer=type
31+
--align-reference=type
32+
33+
--suffix=none

0 commit comments

Comments
 (0)