Skip to content

Feat/code formatting #3

Feat/code formatting

Feat/code formatting #3

name: clang-format Check
on: [push, pull_request, workflow_dispatch]
# Cancel any previous workflows if the pull request was updated
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'examples'
- 'tests'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: 18
check-path: ${{ matrix.path }}
exclude-regex: '(?:(?:Bindings|CLI)/)|(?:CppParser/(?:Parse)?(?:Expr|Stmt))'