[clang-tools-extra] [clang-tidy] Add WarnOnSizeOfPointer mode to bugprone-sizeof-expression (PR #94356)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 08:49:16 PDT 2024
================
@@ -193,3 +193,8 @@ Options
When `true`, the check will warn on an expression like
``sizeof(expr)`` where the expression is a pointer
to aggregate. Default is `true`.
+
+.. option:: WarnOnSizeOfPointer
+
+ When `true`, the check will warn on an expression like ``sizeof(expr)``
+ where the expression is a pointer. Default is `false`.
----------------
PiotrZSL wrote:
You could mention here that CWE.
https://github.com/llvm/llvm-project/pull/94356
More information about the cfe-commits
mailing list