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
Implicit downcast involving references #6537
Implicit downcast involving references #6537
Conversation
… in testcase, and add 'GOOD' annotation to the testcase
|
I'm unsure if a change note is required for this PR. |
cpp/ql/src/Likely Bugs/Conversion/ImplicitDowncastFromBitfield.ql
Outdated
Show resolved
Hide resolved
|
LGTM, modulo @rdmarsh2's comment. Including a change note is the right thing to do. It goes in https://github.com/github/codeql/tree/main/cpp/change-notes, and you can see the style and conventions by looking at a few other recent change notes. |
|
I've added a change-note. I'm somewhat unsure on what to write in it, so please do not hesitate to comment so I can learn. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry, the change note change needs accepting, then LGTM.
Co-authored-by: Jonas Jensen <jbj@github.com>
Add tests for implict downcast when using references, and fix the test to detect implicit downcasts when using references, which was not previously not detected.