When running run-clang-tidy.py and there are files that have errors, run-clang-tidy.py will return a non-zero exit code. However, idf.py clang-check seems to swallow up that exit code and return a 0 exit code.
This make it difficult to know if there were errors in the clang-tidy run. For example, it is difficult to fail a check in CI if clang-tidy was unable to run successfully.
When running
run-clang-tidy.py
and there are files that have errors,run-clang-tidy.py
will return a non-zero exit code. However,idf.py clang-check
seems to swallow up that exit code and return a 0 exit code.This make it difficult to know if there were errors in the clang-tidy run. For example, it is difficult to fail a check in CI if clang-tidy was unable to run successfully.