1
0

.pre-commit-config.yaml 449 B

123456789101112
  1. repos:
  2. - repo: local
  3. hooks:
  4. - id: clang-format
  5. name: clang-format
  6. # Uses whatever `clang-format` resolves to on PATH (the Homebrew
  7. # install on macOS) instead of a version pinned here, so it tracks
  8. # the same version CI installs via `brew install clang-format`.
  9. entry: clang-format
  10. language: system
  11. files: ^(httplib\.h|(example|fuzzing|test)/[^/]+\.(cpp|cc|h))$
  12. args: [-i]