Skip to content

Commit

Permalink
Add clang format check (#11)
Browse files Browse the repository at this point in the history
* add clang format check

* update file names for clang format check

* resolve merge conflict

---------

Co-authored-by: Jian Sun <sunjian@ucar.edu>
  • Loading branch information
sjsprecious and sjsprecious authored Jul 20, 2024
1 parent 6bc966e commit 5d49260
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ jobs:

- name: Format code
run: |
find include -type f \( -name '*.hpp' -o -name '*.h' -o -name '*.cuh' -o -name '*.inl' \) -exec clang-format -i --style=file --verbose {} +
find src -type f \( -name '*.cu' -o -name '*.hpp' -o -name '*.h' -o -name '*.cpp' \) -exec clang-format -i --style=file --verbose {} +
find test -type f \( -name '*.hpp' -o -name '*.h' -o -name '*.cpp' -o -name '*.cuh' -o -name '*.cu' \) ! -path 'test/tutorial/*' -exec clang-format -i --style=file --verbose {} +
find src -type f \( -name '*.cc' -o -name '*.hh' -o -name '*.h' -o -name '*.cpp' \) -exec clang-format -i --style=file --verbose {} +
- name: Check for changes
id: check-changes
Expand Down

0 comments on commit 5d49260

Please sign in to comment.