We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acecc27 + 6b951d4 commit 41067ccCopy full SHA for 41067cc
.clang-format
@@ -0,0 +1,5 @@
1
+BasedOnStyle: llvm
2
+BreakBeforeBraces: Custom
3
+BraceWrapping:
4
+ BeforeElse: true
5
+IndentWrappedFunctionNames: false
.github/workflows/source-format-check.yml
@@ -0,0 +1,20 @@
+name: Source code format check
+
+on:
+ push:
+ branches: [ "master" ]
6
+ pull_request:
7
8
+ workflow_dispatch:
9
10
+jobs:
11
+ check-format:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v4
16
+ - name: Install dependencies
17
+ run: sudo apt-get install -y clang-format
18
+ - name: Run clang-format
19
+ run: |
20
+ git $(ls-files '*.*pp') | xargs clang-format -n -Werror
0 commit comments