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: Losing data if parameter std::function<void(bool)> is used #4023

Closed
Crafty-Codes opened this issue May 3, 2023 · 0 comments · Fixed by #4027
Closed

CPPParser: Losing data if parameter std::function<void(bool)> is used #4023

Crafty-Codes opened this issue May 3, 2023 · 0 comments · Fixed by #4027
Assignees
Labels

Comments

@Crafty-Codes
Copy link

Crafty-Codes commented May 3, 2023

If you parse a function with a parameter function<void(bool)> it will delete all whats in < (void(bool) is a example happens also with void(int) etc).

The CPP parser probably sees the ( as beginning of the function and stops there. Luckily all parameter after this function will still be read.

I used the Function declType from the class Poco:CppParser:Variable and there it returns std::function<

I tested it locally on Linux Ubuntu 22.04

Tested example

// Original
virtual void ExecuteCommand(bool, std::function<void(bool)>, int) = 0;
// After read by CPP Parser
virtual void ExecuteCommand(bool, std::function<, int) = 0;
@Crafty-Codes Crafty-Codes changed the title CPPParser: Losing data if parameter std::function<> is used CPPParser: Losing data if parameter std::function<void(bool)> is used May 3, 2023
@obiltschnig obiltschnig added this to the Release 1.12.5 milestone Jul 11, 2023
@obiltschnig obiltschnig self-assigned this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants