Try to describe our coding style using clang-format

How to use:

Install 'git-format-clang' which is part of the clang suite (Fedora:
git-clang-format, openSUSE: clang-tools).

Now do your changes and stage them with `git add`. Once they are staged
format the code using `git clang-format` before you commit.

Now the formatting changed can be viewed with `git diff` against the
staged changes.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2020-12-14 16:37:14 +01:00
committed by Andreas Schneider
parent c09b02c573
commit 8f6b283582
2 changed files with 25 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,5 @@
*.a
*.o
.*
*.swp
*~$
cscope.*