Skip to content

check-style: Refactor check-style-clang-format.py to reduce duplicate code and more improvements

Eduardo Almeida requested to merge edalm/ns-3-dev:check-style-refactor into master

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.

Merge request reports