Add doc for using clang-format hook #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: clang-format Check | |
on: [push, pull_request] | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run clang-format style check for C/C++ programs. | |
uses: jidicula/clang-format-action@v4.11.0 | |
with: | |
clang-format-version: '16' | |
fallback-style: 'LLVM' | |
# Ignore third-party headers. | |
exclude-regex: 'core/file/(json|nifti[12]).h' |