Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# BasedOnStyle: LLVM
AccessModifierOffset: -3
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: None
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
# This would be nice to have but seems to also (mis)align function parameters
AlignConsecutiveDeclarations: None
# AlignFunctionDeclarations: true
AlignConsecutiveDeclarations:
Enabled: true
# Part of clang-format 20.1.0
AlignFunctionDeclarations: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ jobs:
- name: Determine merge base
run: echo "MERGE_BASE=$(git merge-base ${{ github.event.pull_request.base.sha }} HEAD)" >> $GITHUB_ENV
- name: install clang-format
run: sudo apt-get install -y clang-format
run: |
wget https://apt.llvm.org/llvm.sh
chmod u+x ./llvm.sh
sudo ./llvm.sh 20
sudo apt-get install -y clang-format-20
PATH=/usr/lib/llvm-20/bin:${PATH}
- name: run clang-format script
run: .ci/format_script.sh
run: |
PATH=/usr/lib/llvm-20/bin:${PATH}
.ci/format_script.sh

ruff:
if: |
Expand Down
Loading
Loading