ref:fe500199604f0db5bde25bf640779c54b08248b6

docs(contributing): refresh clang-format guidance (#5233)

SHA: fe500199604f0db5bde25bf640779c54b08248b6
Author: Sev7een <241618010017@HHU.EDU.CN>
Date: 2026-05-31 16:34
Parents: ae14f9b
1 files changed +5 -11
Type
docs/contributing.md +5 −11
@@ -17,6 +17,6 @@
(check `template_header.html` and `template_header_main.html`).
* The Style System is provided by [Bootstrap](https://getbootstrap.com).
* Icons are provided by [Lucide](https://lucide.dev) and [Simple Icons](https://simpleicons.org).
* The JS framework used by the more interactive pages is [Vus.js](https://vuejs.org).
* The JS framework used by the more interactive pages is [Vue.js](https://vuejs.org).
#### Building
@@ -39,7 +39,7 @@
@admonition{Community | We are looking for language coordinators to help approve translations.
The goal is to have the bars above filled with green!
If you are interesting, please reach out to us on our Discord server.}
If you are interested, please reach out to us on our Discord server.}
#### CrowdIn
The translations occur on [CrowdIn][crowdin-url].
@@ -156,17 +156,11 @@
### Testing
#### Clang Format
Source code is tested against the `.clang-format` file for linting errors. The workflow file responsible for clang
format testing is `.github/workflows/cpp-clang-format-lint.yml`.
Option 1:
```bash
find ./ -iname *.cpp -o -iname *.h -iname *.m -iname *.mm | xargs clang-format -i
```
Source code is tested against the `.clang-format` file for linting errors.
Option 2 (will modify files):
To apply clang-format locally (will modify files):
```bash
uv run --only-group lint python ./scripts/update_clang_format.py
uv run --no-sync --only-group lint python ./scripts/update_clang_format.py
```
#### Unit Testing