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

CPPParser fix for std::function parameter #4013

Closed
wants to merge 6 commits into from
Closed

CPPParser fix for std::function parameter #4013

wants to merge 6 commits into from

Conversation

Crafty-Codes
Copy link

@Crafty-Codes Crafty-Codes commented Apr 21, 2023

Fixes

The CppParser had problems to read a parameter if it was a function.
bool example(int x, int y, std::function<bool(int, int)> fcn); would have cut out all after std::function<.

This solution watches for the < (which previously caused problems) and wait's till > for closing.

It will also fix all other template parameter in cpp with the same structure (means if they have < and >)

@Crafty-Codes Crafty-Codes changed the title CPPParser fix for std::function parameter CPPParser fix #4023 for std::function parameter May 3, 2023
@Crafty-Codes Crafty-Codes marked this pull request as draft May 3, 2023 10:27
@Crafty-Codes Crafty-Codes deleted the fix/std-function branch May 8, 2023 06:51
@Crafty-Codes Crafty-Codes changed the title CPPParser fix #4023 for std::function parameter CPPParser fix for std::function parameter May 8, 2023
@Crafty-Codes Crafty-Codes restored the fix/std-function branch May 8, 2023 06:54
@Crafty-Codes Crafty-Codes deleted the fix/std-function branch May 8, 2023 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant