To simplify the discovery of C code style issues and enforce the rules
specified in .clang-format, I've added a new 'compliant' target for
running the appropriate clang-format command.
In case code style issues are found, source files are modified in place,
and the resulting diff can be viewed. The exit code in this case will be
1, so make will exit with an error. This helps to automate testing for
code style issues.
To simplify the discovery of C code style issues and enforce the rules specified in .clang-format, I've added a new 'compliant' target for running the appropriate clang-format command.
In case code style issues are found, source files are modified in place, and the resulting diff can be viewed. The exit code in this case will be 1, so make will exit with an error. This helps to automate testing for code style issues.