style: make separate functions for assignment, ternary and short_circuit #188
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 Compliance Check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install clang-format | |
run: | | |
sudo apt update | |
sudo apt install -y clang-format | |
- name: Check Code Formatting | |
run: | | |
# Define the paths to check | |
FILES_TO_CHECK=$(find . -name '*.cpp' -o -name '*.hpp' -o -name '*.cc' -o -name '*.hh') | |
# Run clang-format and list any files that don't comply | |
for file in $FILES_TO_CHECK; do | |
clang-format --dry-run --Werror $file | |
done |