Skip to content

Commit 463d7b2

Browse files
authored
Update clang format (#1559)
* add comment space directive (#1558) * Create clang-format.yml * Update clang-format.yml * Update clang-format.yml * Clang format updates (#1560) * add comment space directive * Fix clang format issue * wrap in clang-format off
1 parent 9c0b99c commit 463d7b2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/clang-format.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: clang-format check
2+
on: [push, pull_request]
3+
jobs:
4+
formatting-check:
5+
name: formatting check
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
path:
10+
- 'src'
11+
- 'examples'
12+
- 'include'
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: runs clang-format style check for C/C++/Protobuf programs.
16+
uses: jidicula/clang-format-action@v4.13.0
17+
with:
18+
clang-format-version: '18'
19+
check-path: ${{ matrix.path }}

0 commit comments

Comments
 (0)