afegit pre-hooks
This commit is contained in:
10
CLAUDE.md
10
CLAUDE.md
@@ -107,3 +107,13 @@ tools/linter/run_cppcheck.sh -u # unused functions
|
||||
- OpenGL
|
||||
- C++20 compiler (clang++ on macOS, g++ on Linux/Windows)
|
||||
- CMake 3.10+
|
||||
|
||||
## Git Hooks
|
||||
|
||||
Pre-commit hooks are stored in `tools/hooks/` and must be configured after cloning:
|
||||
|
||||
```bash
|
||||
make setup_hooks
|
||||
```
|
||||
|
||||
This configures git to use `tools/hooks/` as the hooks directory. The pre-commit hook runs `clang-format` to verify code formatting before each commit.
|
||||
|
||||
Reference in New Issue
Block a user