Closed Lyle-Alloy closed 3 years ago
I wasted way too much time looking for a reason why clang-tidy
hook fails. Finally I've found this pull request and changing args to -p=compile_commands.json
did the job.
I've simplified the clang-tidy hook code so stderr should be passed correctly. Can you check whether this works for you?
I spent a while debugging a problem that was just me putting in bad command line arguments (clang tidy accepts
-p compile_commands.json
, but args needs-p=compile_commands.json
, that's a different problem though).This change would just print the error from clang tidy verbatim if that happens.