Skip to content
Snippets Groups Projects
Commit 527e7b8a authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Formalized coding style, created AStyle config.

Usage: astyle --options=astylerc <files>
parent 4b6e8ff8
Branches
Tags
No related merge requests found
......@@ -5,7 +5,7 @@ Coding style
* Max line width: 80 chars
* Pointer asterisk attached to the name of the variable
* Own structures/types: _t suffix (f.e. nameserver_t)
* Header guard format: _KNOTD__HEADER_H_
* Header guard format: _KNOTD_HEADER_H_
* Spaces around binary operators
* Space between keyword and bracket (f.e. "if (predicate)")
* No space between variable and typecast (f.e. "return (int)val;")
......
astylerc 0 → 100644
--style=1tbs
--indent=tab=8
--indent-preprocessor
--pad-oper
--pad-header
--unpad-paren
--add-brackets
--convert-tabs
--align-pointer=name
--mode=c
--lineend=linux
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment