Add note on sys/clang-format.py script to DEVELOPERS.md (#3898)

This commit is contained in:
Nikolaos Chatzikonstantinou 2023-09-29 07:37:58 +03:00 committed by GitHub
parent 5211cdcfb0
commit 1669d5a704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,15 @@ coding style as the rest of the code base.
```bash
git-clang-format-16 --extensions c,cpp,h,hpp,inc --style file dev
```
There is a script available to run on all source files; you will need python and
the gitpython python library, which you may install e.g. from pip. Invoke it as
follows (after making sure that your local copy of `dev` is up-to-date and your
branch is up-to-date with `dev`):
```bash
./sys/clang-format.py
```
* Lines should be at most 100 chars. A tab is considered as 8 chars. If it makes