toxcore/other/astyle
iphydf b473630321
chore: Add some comments to the astyle config.
To explain why some options are disabled.
2024-02-02 11:34:29 +00:00
..
astylerc chore: Add some comments to the astyle config. 2024-02-02 11:34:29 +00:00
format-source chore: Reformat sources with astyle. 2024-02-02 01:31:32 +00:00
pre-commit Switched tox.h to the dsl generated one. 2015-04-25 20:39:13 -04:00
README.md Remove deprecated ToxDNS 2017-12-29 00:32:18 +00:00

This directory can house various tools and utilities.

How to use astyle

Manually

For all files

Run from toxcore directory:

astyle --options=./other/astyle/astylerc ./toxcore/*.c ./toxcore/*.h ./testing/*.c ./toxav/*.c ./toxav/*.h ./other/*.c ./other/bootstrap_daemon/*.c ./toxencryptsave/*.c ./toxencryptsave/*.h ./auto_tests/*.c

For selected file

Run from toxcore directory, e.g. for tox.h file:

astyle --options=./other/astyle/astylerc ./toxcore/tox.h

Automatically, as pre-commit hook (*NIX only)

Copy astylerc to toxcore/.git/hooks

Why

astylerc - this file can be used in the pre-commit hook to try its best at making the code conform to the coding style of toxcore.

Furthermore, it is being used to format tox.h after using apidsl to generate it.