Commit Graph

3 Commits

Author SHA1 Message Date
Zhanhao Cao e9f288713a
[Misc] Fix silent failure in `code_format.sh` when clang-format is missing (#1824) 2026-04-06 12:19:26 +08:00
Stary 0267e354ec
[CI] chore: update clang-format to v20.1.8 and enforce version 20 (#1379)
* chore: update clang-format to v20.1.8 and enforce version 20

- Upgrade clang-format pre-commit hook from v19.1.0 to v20.1.8
- Update code formatting script to require clang-format-20
- Extend file extensions to include .c, .cc, and .cxx
- Add 'thirdparty' directory to exclude list
- Improve installation instructions for clang-format-20

Signed-off-by: staryxchen <staryxchen@tencent.com>

* refactor(code_format): simplify file filtering logic

- Replace hardcoded file extensions with configurable FILE_EXTENSIONS variable
- Improve maintainability and flexibility of file selection

Signed-off-by: staryxchen <staryxchen@tencent.com>

---------

Signed-off-by: staryxchen <staryxchen@tencent.com>
2026-01-21 00:08:52 +08:00
Stary 30ca0868d5
[CI] Improve Code Formatting Workflow (#1368)
* chore: add code formatting script and update PR template

- Add code_format.sh script for automated C/C++ code formatting
- Update pull request template to include code formatting checklist item

Signed-off-by: staryxchen <staryxchen@tencent.com>

* ci: simplify clang-format workflow by using script

- Consolidate checkout steps into a single step with fetch-depth: 0
- Replace manual changed file detection and formatting with unified script call
- Improve base ref determination for both PR and push events

Signed-off-by: staryxchen <staryxchen@tencent.com>

---------

Signed-off-by: staryxchen <staryxchen@tencent.com>
2026-01-14 14:46:07 +08:00