Use __cplusplus version check, and minor improve on the bitmask. #450
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
# Sam note: this action is from: https://github.com/jidicula/clang-format-action | |
name: clang-format | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
path: | |
- check: 'include' | |
- check: 'src' | |
- check: 'utilities' | |
exclude: '(old_files|qccpack)' # Exclude file paths containing "old_files" or "qcc_pack" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run clang-format style check for C/C++ programs. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '13' | |
check-path: ${{ matrix.path['check'] }} | |
exclude-regex: ${{ matrix.path['exclude'] }} | |
fallback-style: 'Chromium' # optional |