[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 26 11:33:28 PDT 2024


================
@@ -588,8 +588,8 @@ Warns when a null pointer is passed to a pointer which has a _Nonnull type.
 
 .. _nullability-NullReturnedFromNonnull:
 
-nullability.NullReturnedFromNonnull (ObjC)
-""""""""""""""""""""""""""""""""""""""""""
+nullability.NullReturnedFromNonnull
+"""""""""""""""""""""""""""""""""""
----------------
NagyDonat wrote:

```suggestion
nullability.NullReturnedFromNonnull (C, C++, ObjC)
""""""""""""""""""""""""""""""""""""""""""""""""""
```
This is how other checkers are marked. (Do I understand correctly that `__attribute__((returns_nonnull))` is relevant both under C and C++?)

https://github.com/llvm/llvm-project/pull/106048


More information about the cfe-commits mailing list