ccapi
ccapi copied to clipboard
Fix github workflow for checking C++ code style
Describe the bug
Currently github workflow defined by .github/workflows/check_cpp_code_style.yml.d doesn't work.
Expected behavior
The workflow, when triggered, should perform clang-format:
find . -type f -not -path "*/dependency/*" -not -path "*/build/*" \( -name "*.h" -or -name "*.cpp" \) | xargs clang-format -i -style="{BasedOnStyle: Google, ColumnLimit: 160}". Then if git diff produces nothing, it should be considered pass (otherwise fail).
Note
cpplint part does work as expected.