From 9de5d13435747b75f3f619b1686298e8e8162e8d Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Tue, 30 Jun 2026 11:57:30 +0800 Subject: [PATCH] chore: enable AlignPPAndNotPP in clang-format and pin clang version in CI --- .clang-format | 2 +- .github/workflows/format-check.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 653efce..f63b55e 100644 --- a/.clang-format +++ b/.clang-format @@ -68,7 +68,7 @@ AlignConsecutiveTableGenDefinitionColons: AlignEscapedNewlines: Right AlignOperands: Align AlignTrailingComments: - #AlignPPAndNotPP: true + AlignPPAndNotPP: true Kind: Always OverEmptyLines: 0 AllowAllArgumentsOnNextLine: true diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index 9dbd6d2..c033c70 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -9,7 +9,7 @@ permissions: jobs: formatting: runs-on: ubuntu-latest - container: silkeh/clang:latest + container: silkeh/clang:21 steps: - uses: actions/checkout@v4 - name: Run clang-format