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