Skip to content

clang-format

clang-format #68

Workflow file for this run

name: Formatting check
on:
push:
paths-ignore:
- "**/*.md"
- '**/*.txt'
- '3rdparty/*'
pull_request:
paths-ignore:
- "**/*.md"
- '**/*.txt'
- '3rdparty/*'
workflow_dispatch:
jobs:
formatting-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: RPCSX/rpcsx
ref: master
- name: Pre-Format
run: |
clang-format -style=llvm -dump-config > .clang-format
find . -regex '.*\.\(cpp\|hpp\|cu\|c\|h\)' -exec clang-format -style=file -i {} \;
- name: Run clang-format
uses: jidicula/[email protected]
with:
exclude-regex: (libspirv|3rdparty)
clang-format-version: 16