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

C++: Add more MaD models for ATL string classes #18261

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

MathiasVP
Copy link
Contributor

Follow-up to #18136

Note that I also fixed another MaD bug: we didn't handle varargs. This has been fixed in c5bb907

@MathiasVP MathiasVP requested a review from a team as a code owner December 10, 2024 18:30
@github-actions github-actions bot added the C++ label Dec 10, 2024
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label Dec 10, 2024
@MathiasVP MathiasVP requested a review from geoffw0 December 10, 2024 20:30
dbartol
dbartol previously approved these changes Dec 20, 2024
Copy link
Contributor

@dbartol dbartol left a comment

Choose a reason for hiding this comment

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

Looks good, at least from what I can remember from 25 years ago. I noted one trivial missing model, not blocking.

- ["", "CSimpleStringT", True, "operator+=", "(wchar_t)", "", "Argument[-1]", "ReturnValue[*]", "taint", "manual"]
- ["", "CSimpleStringT", True, "operator+=", "(wchar_t)", "", "Argument[0]", "ReturnValue[*]", "taint", "manual"]
- ["", "CSimpleStringT", True, "operator+=", "(wchar_t)", "", "Argument[0]", "Argument[-1]", "taint", "manual"]
- ["", "CSimpleStringT", True, "operator=", "", "", "Argument[*0]", "Argument[-1]", "value", "manual"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Does operator= return a CSimpleStringT&? If so, Argument[*0] should propagate to ReturnValue[*] as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed it does: https://learn.microsoft.com/en-us/cpp/atl-mfc-shared/reference/csimplestringt-class?view=msvc-170#operator_eq. Turns out I actually forgot that flow in a bunch of other models. I've included all of those in e777377. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants