https://github.com/nicovank commented:
Add check and alias entries to [clang-tools-extra/docs/clang-tidy/checks/list.rst](https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/docs/clang-tidy/checks/list.rst). Check name: this is not only sizeof. Maybe `bugprone-suspicious-pointer-scaling-arithmetic`? Others may have other ideas. The two examples in the check documentation would not be matched with the current version of this check as they mutiply the `sizeof` expression with a constant before addition. I feel like this is also a common pattern. Can this check also catch those? https://github.com/llvm/llvm-project/pull/106061 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits