Skip to content

Commit 192c27d

Browse files
committed
Tools: use astyle
1 parent 16a487c commit 192c27d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
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'

tools/astyle.cfg

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# astyle version 3.1
2+
# astyle --project=tools/astyle.cfg -r -I 'src/*.cpp' 'src/*.h'
3+
# astyle --project=tools/astyle.cfg -r -I 'lib/*.cpp' 'lib/*.h'
4+
5+
#--max-code-length=120
6+
7+
--indent=tab
8+
--indent-classes
9+
--indent-labels
10+
--indent-preproc-block
11+
--indent-preproc-define
12+
--convert-tabs
13+
--max-continuation-indent=64
14+
--keep-one-line-blocks
15+
--align-pointer=type
16+
--align-reference=type
17+
--pad-oper
18+
--pad-comma
19+
--pad-header
20+
--suffix=none
21+
22+
--exclude=bitfiddle.h
23+
--exclude=lib/CHMLib
24+
--ignore-exclude-errors-x

0 commit comments

Comments
 (0)