-
Notifications
You must be signed in to change notification settings - Fork 84
7904089: jextract cannot handle "void foo(int foo)" #292
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back nbenalla! A progress list of the required criteria for merging this PR into |
|
@nizarbenalla This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. ➡️ To flag this PR as ready for integration with the above commit message, type |
| if (!isVarArg) { | ||
| String holderClass = newHolderClassName(javaName); | ||
| // function name may conflict with any of its parameter names. | ||
| boolean nameConflict = parameterNames.contains(javaName); |
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.
should this use finalParameterNames ? Note that finalParameterNames might contain additional parameters -- e.g. for the segment allocator.
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.
I think that most of the time, they are the same.
finalParameterNames sometimes has the additional x0, x1 parameters but we can check for conflicts with those as well.
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.
I noticed we can have conflicts for void foo_variadic(int x1, ...); too, I will update the PR to handle this
Please review this change to fix a name conflicts between functions and name parameters.
TIA!
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jextract.git pull/292/head:pull/292$ git checkout pull/292Update a local copy of the PR:
$ git checkout pull/292$ git pull https://git.openjdk.org/jextract.git pull/292/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 292View PR using the GUI difftool:
$ git pr show -t 292Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jextract/pull/292.diff
Using Webrev
Link to Webrev Comment