FWIW, I implemented a clang-tidy check for this specific issue some years ago: https://reviews.llvm.org/D59103
It is not included in clang-tidy today, as it was rejected for causing too many false positives. But as clang-tidy seems to nowadays support plug-ins, maybe it could be converted to one?