Skip to content

CppParser: Support return values which are specified to be in the global namespace#3927

Merged
obiltschnig merged 2 commits intopocoproject:develfrom
thomkopp:feat/cppparser-global-ns-support
Jan 23, 2023
Merged

CppParser: Support return values which are specified to be in the global namespace#3927
obiltschnig merged 2 commits intopocoproject:develfrom
thomkopp:feat/cppparser-global-ns-support

Conversation

@thomkopp
Copy link
Copy Markdown
Contributor

Fix: #3926

If a return value of a member function is specified to be in the global
namespace using leading double colons (e.g. ::MyClass) the parser is now
recognizing it as valid c++ code instead of aborting with an exception.
If a return value of a virtual member function is specified to be in the
global namespace using leading double colons (e.g. virtual ::MyClass*)
the parser is now handling the virtual keyword correctly. Prior the
function was not declared as virtual and the return value was named as
virtual::MyClass* which led to completely missleading results.
@obiltschnig obiltschnig merged commit ed7afac into pocoproject:devel Jan 23, 2023
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.

CppParser throws exception when return value is specified to be in global namespace

2 participants