diff options
author | Arseniy Zaostrovnykh <necto.ne@gmail.com> | 2024-08-27 14:41:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 14:41:52 +0200 |
commit | 4f33e7c683104ea72e013d4ddd104b711a25d620 (patch) | |
tree | c374fa2bc05fc48a01ed9e79ca206bc21e20e842 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | 6f62757e779492b288a98c7c2e27eba95a551e3b (diff) | |
download | llvm-4f33e7c683104ea72e013d4ddd104b711a25d620.zip llvm-4f33e7c683104ea72e013d4ddd104b711a25d620.tar.gz llvm-4f33e7c683104ea72e013d4ddd104b711a25d620.tar.bz2 |
[analyzer] Report violations of the "returns_nonnull" attribute (#106048)
Make sure code respects the GNU-extension `__attribute__((returns_nonnull))`.
Extend the NullabilityChecker to check that a function returns_nonnull
does not return a nullptr.
This commit also reverts an old hack introduced by
49bd58f1ebe28d97e4949e9c757bc5dfd8b2d72f
because it is no longer needed
CPP-4741
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions