You need to sign in or sign up before continuing.
check-style: Refactor check-style-clang-format.py to reduce duplicate code and more improvements
Refactor the script check-style-clang-format.py
:
- Reduce duplicate code, making it easier to manage and expand.
- Move exit codes to the main function.
- Fix trailing whitespace column indicator in verbose mode.
Moreover, update the coding-style.rst
file to remove the optional flags from the check-style-clang-format.py
usage commands. This avoids errors for users copy-pasting the commands verbatim. The optional flags are explained in the lines above.