Our tests currently hardcode clang-tidy-8, which is not available in the default Ubuntu 22.04 repositories. We discussed on Discord how to address this, in particular whether we want to continue to hardcode a specific clang-tidy version. The answer was "yes". We want to move to clang-tidy-12, which is the only version available in the intersection of the default repositories of both Ubuntu 20.04 and Ubuntu 22.04.
It looks like this could be a simple change involving only an update of the version number in a total of 4 places in misc/style/run-clang-tidy.py and .github/workflows/style.yml, but perhaps tests will uncover difficulties. Any volunteers to look into this?
Since we're now well past clang-tidy 6.0, we can also now do what Jendrik suggested in issue856. See that issue and the comment that mentions it in misc/style/run-clang-tidy.py. I think we can do this change in this issue as well, but then we should update the title to something like "move to newer clang-tidy version and enable some additional checks".
|