other/astyle/README.md
This directory can house various tools and utilities.
Run from toxcore directory:
astyle --options=./other/astyle/astylerc ./toxcore/*.c ./toxcore/*.h ./toxdns/*.c ./toxdns/*.h ./testing/*.c ./toxav/*.c ./toxav/*.h ./other/*.c ./other/bootstrap_daemon/*.c ./toxencryptsave/*.c ./toxencryptsave/*.h ./auto_tests/*.c
Run from toxcore directory, e.g. for tox.h file:
astyle --options=./other/astyle/astylerc ./toxcore/tox.h
Copy astylerc to toxcore/.git/hooks
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.