ITK icon indicating copy to clipboard operation
ITK copied to clipboard

Update clang-format version

Open thewtex opened this issue 1 year ago • 2 comments

Current clang-format is version 8, circa 2019. Update to a newer version to support system clang-format executables available in packages and also provide a ARM macOS binary.

  • [ ] Update the ITK/.clang-format style configuration file
  • [ ] Update CMake and shell scripts used for running clang-format: CMake/Clang.cmake*, Utilities/ClangFormat/DownloadClangFormat.cmake, Utilities/Maintenance/clang-format.bash, Utilities/Maintenance/git-clang-format.
  • [ ] Re-run on the source tree.
  • [ ] Update the module in ITKSphinxExamples

thewtex avatar Apr 08 '24 18:04 thewtex

I have recently been looking into use pre-commit with the clang-format hooks, which pulls clang-format from pypi

blowekamp avatar Apr 12 '24 18:04 blowekamp

Yes, possibly we just go to pre-commit. Discussed more in https://github.com/InsightSoftwareConsortium/ITK/issues/4235

thewtex avatar Apr 12 '24 22:04 thewtex