Clang Format Pre-Commit
pip install pre-commit↑ プロジェクトディレクトリで実行
CraftAndLife
.pre-commit-config.yaml を作成
プロジェクトディレクトリに置く
- CraftAndLife.slnxがあるディレクトリ!
repos:
- repo: <https://github.com/pre-commit/mirrors-clang-format>
rev: v19.1.0
hooks:
- id: clang-format
types_or: [c++, c, objective-c++]
files: '^(?:Source)/.*\.(cpp|c|h|hpp|inl)$'