Skip to content

Commit

Permalink
[ci] Update file extensions for C++ formatting checks (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Howe <[email protected]>
  • Loading branch information
bmhowe23 authored Feb 12, 2025
1 parent 9434eb1 commit 1d77713
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pr_sanity_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ jobs:
- '.github/workflows/pr_sanity_checks.yaml'
- '.clang-format'
check-cpp:
- '**/*.cpp'
- '**/*.c'
- '**/*.h'
- '**/*.cpp'
- '**/*.hpp'
- '**/*.cc'
- '**/*.hh'
- '**/*.cxx'
- '**/*.cu'
- '**/*.cuh'
check-all-python:
- '.github/workflows/pr_sanity_checks.yaml'
- '.style.yapf'
Expand Down Expand Up @@ -74,7 +81,7 @@ jobs:
- name: clang-format all things
if: needs.check-changes.outputs.check-all-cpp == 'true'
run: |
git ls-files '*.cpp' '*.h' | xargs clang-format-${LLVM_VERSION} -i
git ls-files '*.c' '*.h' '*.cpp' '*.hpp' '*.cc' '*.hh' '*.cxx' '*.hxx' '*.cu' '*.cuh' | xargs clang-format-${LLVM_VERSION} -i
if ! git diff --exit-code; then
git diff --ignore-submodules > clang-format.patch
Expand Down

0 comments on commit 1d77713

Please sign in to comment.