-
Notifications
You must be signed in to change notification settings - Fork 80
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
Failure when parsing a lambda in a parameter list #25
Comments
Thanks for the report. DOUBLE thanks for telling me how to reproduce it & giving me very clear information on the problem :-). Your proposed solution sounds exactly right. If you can't get a working pull request, let me know. |
Hopefully we've resolved this in the development branch. Agree? |
Yup! That should do it. Glad someone else was tracking it. I patched it locally but was distracted by other work before I could get it into a pull request. The only difference I had was an extra error check after the decrement:
|
Here are the steps to repeat this using the Docker image supplied here:
Run the image:
Enter the following in the container:
The following (truncated) output is generated:
The report generation fails due to the two parsing errors. The second one can be found starting on line 63 in
vcpkg/toolsrc/src/vcpkg/sourceparagraph.cpp
:The error results from the parsing being terminated by the
;
within the body of the lambda. I believe a potential solution is to updateextract_c_parameters
to track the current curly brace level and ignore the occurrences of;
at a level of 1 or greater. I'll test this and submit a pull request if successful.-Ken
The text was updated successfully, but these errors were encountered: