Skip to content

Commit

Permalink
Add clang-format to the pre-commit hooks
Browse files Browse the repository at this point in the history
This formats the code with clang-format 15 since the pre-commit hook for
clang-format 16 would require a newer version of pre-commit.
  • Loading branch information
arichardson authored and ptomsich committed Jun 19, 2023
1 parent 1c2dca9 commit 787ccfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ repos:
exclude: '.*\.(diff|dump|patch|svg)'
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.7'
hooks:
- id: clang-format
types_or: [c, c++] # Don't try running clang-format on .json files

0 comments on commit 787ccfb

Please sign in to comment.