Unverified Commit 37785fed authored by Discookie's avatar Discookie Committed by GitHub
Browse files

[clang][analyzer] Bring cplusplus.ArrayDelete out of alpha (#83985)



The checker finds a type of undefined behavior, where if the type of a
pointer to an object-array is different from the objects' underlying
type, calling `delete[]` is undefined, as the size of the two objects
might be different.

The checker has been in alpha for a while now, it is a simple checker
that causes no crashes, and considering the severity of the issue, it
has a low result-count on open-source projects (in my last test-run on
my usual projects, it had 0 results).

This commit cleans up the documentation and adds docs for the limitation
related to tracking through references, in addition to moving it to
`cplusplus`.

---------

Co-authored-by: default avatarBalazs Benics <benicsbalazs@gmail.com>
Co-authored-by: default avatarwhisperity <whisperity@gmail.com>
parent 94a550da
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment