mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-19 18:36:53 +02:00
add pre-commit format hook
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
|
rev: v22.1.3
|
||||||
|
hooks:
|
||||||
|
- id: clang-format
|
||||||
|
name: clang-format (C++)
|
||||||
|
files: ^src/.*\.(?:cpp|h|inc)$
|
||||||
|
types: [file]
|
||||||
@@ -62,6 +62,17 @@ Code contributions should be focused, build successfully on Windows, and include
|
|||||||
where practical. Because KytyPS5 is still evolving quickly, consider opening an issue before
|
where practical. Because KytyPS5 is still evolving quickly, consider opening an issue before
|
||||||
starting a large change.
|
starting a large change.
|
||||||
|
|
||||||
|
### Formatting
|
||||||
|
|
||||||
|
Set up the clang-format hook after cloning:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
python -m pip install pre-commit
|
||||||
|
python -m pre_commit install --install-hooks
|
||||||
|
```
|
||||||
|
|
||||||
|
It formats staged `.cpp`, `.h`, and `.inc` files in `src`.
|
||||||
|
|
||||||
## Developer Information
|
## Developer Information
|
||||||
|
|
||||||
The PS5 graphics architecture is based on AMD RDNA 2. Use AMD's
|
The PS5 graphics architecture is based on AMD RDNA 2. Use AMD's
|
||||||
|
|||||||
Reference in New Issue
Block a user