Skip to content

update clang format (#332) #1396

update clang format (#332)

update clang format (#332) #1396

Workflow file for this run

name: format
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- run: sudo apt install clang-format-15
- run: clang-format-15 --version
- name: checkout
uses: actions/checkout@v2
- name: apply clang-format
run: |
FILES=$( find . -type f \( -iname \*.h -o -iname \*.cpp \) )
clang-format-15 --style=file -i $FILES
- run: git diff --exit-code --name-only