[clang-tools-extra] [clang-tidy] Make `P +- BS / sizeof(*P)` opt-outable in `bugprone-sizeof-expression` (PR #111178)
Nicolas van Kempen via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 5 14:41:13 PDT 2024
================
@@ -31,6 +31,7 @@ class SizeofExpressionCheck : public ClangTidyCheck {
const bool WarnOnSizeOfCompareToConstant;
const bool WarnOnSizeOfPointerToAggregate;
const bool WarnOnSizeOfPointer;
+ const bool WarnOnSizeOfPointerArithmeticWithDivisionScaled;
----------------
nicovank wrote:
I find this a little long. `WarnOnArithmeticWithDivisionBySizeOf` maybe?
https://github.com/llvm/llvm-project/pull/111178
More information about the cfe-commits
mailing list