Run clang-tidy over the C++ NIF sources in c_src/.
Unlike make cppcheck, clang-tidy compiles each translation unit, so it
needs the MLX / Fine / ERTS headers and the exact build flags. This task
supplies the same env elixir_make uses when building the NIF — reusing
the already-built (cached) MLX rather than fetching a second copy — and
then invokes the clang-tidy Makefile target, which analyses the NIF
sources with the build's $(CXXFLAGS).
Usage
mix clang.tidyRequires clang-tidy on PATH (brew install llvm); point at a specific
binary with CLANG_TIDY=/path/to/clang-tidy. The enabled checks and the
header filter live in the repo-root .clang-tidy.