update cpplint

This commit is contained in:
Binyang Li
2023-05-11 08:34:57 +00:00
parent 785a973ace
commit 1487596dc8

View File

@@ -25,4 +25,8 @@ jobs:
run: sudo apt-get install -y clang-format-12
- name: Run cpplint
run: make cpplint
run: |
CPPSOURCES=$(find ./ -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)' -not -path "./build/*" -not -path "./python/*")
PYTHONCPPSOURCES=$(find ./python/src/ -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)')
clang-format-12 -style=file --verbose --Werror --dry-run $(CPPSOURCES)
clang-format-12 --dry-run $(PYTHONCPPSOURCES)