From 1487596dc895151c01bf5268e6a6ad94203a8ef8 Mon Sep 17 00:00:00 2001 From: Binyang Li Date: Thu, 11 May 2023 08:34:57 +0000 Subject: [PATCH] update cpplint --- .github/workflows/cpplint.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 0b002f44..b9f9b202 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -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)