forked from u-blox/ubxlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astyle.cfg
41 lines (40 loc) · 1.3 KB
/
astyle.cfg
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Configuration file for AStyle
# K&R style
--style=kr
# space padding around operators: a = bar((b - c) * a, d--);
--pad-oper
# space padding between a header (e.g. 'if', 'for', 'while'...) and the following bracket
--pad-header
# Pointer sticks to the name: char *pThing
--align-pointer=name
# Reference sticks to the name: char &thing
--align-reference=name
# Nice long max continuation indent, as long as the line length
--max-continuation-indent=100
# No minimum conditional indent, align everything wherever it occurs
--min-conditional-indent=0
# All conditions have braces
--add-braces
# Indent the case in switch statements
--indent-switches
# All tabs become [4] spaces
--convert-tabs
# Max line length
--max-code-length=100
# When breaking lines, leave the logical operator on the end of the line
--break-after-logical
# Ignore unfound excludes
--ignore-exclude-errors
# Remove empty lines
--squeeze-lines=1
# Directories to exclude
--exclude='port/platform/zephyr/boards'
--exclude='port/platform/nrf5sdk/src/segger_rtt'
--exclude='port/platform/zephyr/custom_boards'
--exclude='port/platform/common/debug_utils/src/freertos/additions'
--exclude='_test_output'
--exclude='_build'
--exclude='gnss/src/lib_mga'
--exclude='common/geofence/geographiclib'
--exclude='Unity'
--exclude='common/short_range/src/gen2/ucxclient'