Open maldag opened 1 year ago
@llvm/issue-subscribers-clang-tidy
Easiest way (what I do) is to run clang preprocessor before, and create cache. Other option is to enable dependency files generation (require modification of libClangTools) and use clang-tidy with a wrapper as an "compiler". Next option would be to use cmake that has some support for clang-tidy.
But short answer, is not easy but possible.
Thanks for the quick reply. Would you share a small example of how you do things?
There's an (unmaintained) project which tries to achieve that: https://github.com/ejfitzgerald/clang-tidy-cache
I gave it a small spin once but didn't have time to actually look into how well it actually works.
Maybe this https://pypi.org/project/codechecker/ could also be looked at?
I would like to use clang-tidy to check a bigger repository. Is there a way to speed things up using older results of clang-tidy? A naive approach would only check changed files in git, but this does obviously not work due to includes in other files etc.