[clang] [clang][analyzer] Add checker 'core.NullPointerArithm' (PR #157129)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 8 05:44:25 PDT 2025
================
@@ -72,6 +74,9 @@ class DereferenceChecker
const DerefBugType FixedAddressBug{&FixedDerefChecker,
"Dereference of a fixed address",
"a dereference of a fixed address"};
+ const BugType NullPointerArithmBug{
+ &NullPointerArithmChecker,
+ "Possible undefined arithmetic operation involving a null pointer"};
----------------
NagyDonat wrote:
```suggestion
"Possibly undefined arithmetic operation involving a null pointer"};
```
I think this is a bit more correct grammatically.
https://github.com/llvm/llvm-project/pull/157129
More information about the cfe-commits
mailing list