Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPP: Add parent class for delete and delete[] #14058

Merged
merged 9 commits into from
Aug 29, 2023

Conversation

alexet
Copy link
Contributor

@alexet alexet commented Aug 25, 2023

This adds a parent to delete and delete[] so that they can be handled together. This also renames getAllocatorCall into getDeallocatorCall and fixes some incorrect documentation.

I split this out of the IR work.

@alexet alexet marked this pull request as ready for review August 25, 2023 15:44
@alexet alexet requested a review from a team as a code owner August 25, 2023 15:44
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes LGTM (modulo a few QLDoc suggestions). We should probably add a "deprecated" change note to this PR.

I guess we should also do a DCA run to make sure we didn't mess up some join ordering by adding the new parent class?

cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll Outdated Show resolved Hide resolved
cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll Outdated Show resolved Hide resolved
cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll Outdated Show resolved Hide resolved
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MathiasVP MathiasVP merged commit dbdb433 into github:main Aug 29, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants