diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 1a6ccdee..98cb2a65 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -37,7 +37,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Check C++ Formatting - uses: jidicula/clang-format-action@v4.4.1 + uses: jidicula/clang-format-action@v4.11.0 with: clang-format-version: 16 diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 368f27e4..6a24e6a3 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -10,7 +10,7 @@ add_subdirectory(src) add_subdirectory(test) # Define the command -set(FIND_COMMAND find .. -type d -path ./include -prune -o -type d -path ../python/.tox -prune -o -type f -name \"*.cpp\" -o -name \"*.h\" -print) +set(FIND_COMMAND find .. -type d -path ./include -prune -o -type d -path ../python/.tox -prune -o -type f -name "*.cpp" -o -name "*.h" -print) set(CHECK_FORMAT_COMMAND clang-format --dry-run -i) set(FORMAT_COMMAND clang-format --verbose -i)