-
Notifications
You must be signed in to change notification settings - Fork 58
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
Autodetect "enumerate" functions #148
Comments
@Snektron Hey, sorry for the delay on this! I haven't started on the implementation but did finally look into how these functions can be classified. Seems like the most reliable indicators are that (a) the last parameter is an optional pointer, and (b) the previous parameter is tagged as its associated length. That rule seems to correctly classify everything, aside from false positives on some Full list:
So yeah, seems real doable. I should have a PR for you soon, hopefully this weekend at the latest. |
Followup from #146, posting the issue as a reminder for myself :)
We've currently got a hardcoded list but should instead automatically decide whether to generate an
*Alloc()
wrapper based on the parameter's "length" attribute and possibly other factors such as an "incomplete" return code.I won't get to this right away but hopefully in the next few weeks or so.
The text was updated successfully, but these errors were encountered: