diff options
author | Simon Rettberg | 2021-03-06 14:01:25 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-06 14:01:25 +0100 |
commit | a12d743a1cf7737c1fcb1fc649977f9261a857ba (patch) | |
tree | 935a6459324534d63129a6536561421a48d9a6ce /.astylerc | |
parent | [BUILD] Add Github workflow to validate (lint) source code (diff) | |
download | dnbd3-formatting.tar.gz dnbd3-formatting.tar.xz dnbd3-formatting.zip |
Add astyle formatting script/config (in progress)formatting
Diffstat (limited to '.astylerc')
-rw-r--r-- | .astylerc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.astylerc b/.astylerc new file mode 100644 index 0000000..f7393c2 --- /dev/null +++ b/.astylerc @@ -0,0 +1,24 @@ +# Default style is used as a basis +# See http://astyle.sourceforge.net/astyle.html#_default_brace_style +# +# TODO: Struct members with overlong comments in server/global.h break +# in a very stupid way. Can we fix this here? +indent=force-tab=3 +attach-closing-while +indent-after-parens +indent-continuation=2 +# Space after if, while, for +pad-header +# Pad inside of parens +pad-paren-in +align-pointer=name +# Alignment with spaces +convert-tabs +max-code-length=120 +# Don't create backups +suffix=none +exclude=kernel +exclude=picohttpparser.c +exclude=picohttpdparser.h +exclude=crc32.c +exclude=inc/dnbd3 |