Skip to content

Draft: Add clang-format configuration and pre-commit hook

  • Add .clang-format with 120 column limit based on LLVM style
  • Add .pre-commit-config.yaml with clang-format hook from mirrors-clang-format
  • pre-commit framework automatically manages clang-format installation
  • Hook will format C++/CUDA files (.cpp, .hpp, .cu, .cuh) on commit

This is up to discussion! I think code formatting will improve the long term maintainability of the library.

Edited by Benjamin Huth

Merge request reports

Loading