Speed up clang-tidy on CI
Problem
The clang-tidy checks are great but they take quite some time. Let's inspect if we can reduce the duration.
Solution ideas
- Run clang-tidy on merge-requests only on changed files, see this article.
- Run clang-tidy in CMake, see this article. But this won't necessarily result in a speed-up.