Skip to content

Fix #358: Use // instead of # for comments #71

Fix #358: Use // instead of # for comments

Fix #358: Use // instead of # for comments #71

Workflow file for this run

name: Lint C++ Code with clang-format
on:
pull_request:
paths:
- '**/*.cpp'
- '**/*.h'
push:
branches:
- main
jobs:
clang-format-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install clang-format
run: sudo apt-get install -y clang-format
- name: Check formatting
run: |
FILES=$(find . -regex '.*\.\(cpp\|h\)')
# shellcheck disable=SC2086
clang-format --dry-run --Werror -style=file $FILES