Some time ago I formatted most of the C and C++ code, but there was no enforcement of this so obviously it lapsed. This PR re-applies formatting (using clang-format and the wrapper script format_code.sh), and adds a CI check to make sure that formatting is maintained.
@ihilt @nosracd I know you have been doing some development lately, so you will most likely need to run this script now. Please let me know if you run into any problems with it, I can make improvements if necessary.
Some time ago I formatted most of the C and C++ code, but there was no enforcement of this so obviously it lapsed. This PR re-applies formatting (using
clang-format
and the wrapper scriptformat_code.sh
), and adds a CI check to make sure that formatting is maintained.