aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/DeclarationFragments.cpp
diff options
context:
space:
mode:
authorArseniy Zaostrovnykh <necto.ne@gmail.com>2024-08-27 14:41:52 +0200
committerGitHub <noreply@github.com>2024-08-27 14:41:52 +0200
commit4f33e7c683104ea72e013d4ddd104b711a25d620 (patch)
treec374fa2bc05fc48a01ed9e79ca206bc21e20e842 /clang/lib/ExtractAPI/DeclarationFragments.cpp
parent6f62757e779492b288a98c7c2e27eba95a551e3b (diff)
downloadllvm-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/DeclarationFragments.cpp')
0 files changed, 0 insertions, 0 deletions