Commit Graph

6 Commits

Author SHA1 Message Date
Egor Pugin
afa476bc23 [clang-format] Update config. 2021-03-12 22:33:22 +03:00
Stefan Weil
e262d71a56 Modifiy formatting rules
* Allow a single line for empty functions only.
* Don't allow if statements on a single line.

This improves readability and helps when debugging.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-02 06:34:45 +02:00
Stefan Weil
1011e001d8 Update rules for clang-format
Add indentation of preprocessor directives.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:11:22 +02:00
Stefan Weil
d7db470893 Simplify configuration for clang-format
Instead of using a detailed configuration, use Google base style and
add the extras.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-05-26 10:09:57 +02:00
Stefan Weil
544d399f08 Update configuration for clang-format
Don't derive the pointer alignment. Always use left alignment.
Remove also spaces at line endings.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-05-24 20:23:23 +02:00
Stefan Weil
d55e4e5a59 Add configuration for clang-format 7
It is based on Google style:
clang-format-7 -i -style=Google -dump-config >.clang-format

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-05-24 20:21:54 +02:00