Clang Format Pre-Commit
pip install pre-commit↑ プロジェクトのディレクトリで実行CraftAndLife
- CraftAndLife.slnxがあるディレクトリ!
.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)$'