mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
CppParser: Support for return values in global ns
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.
This commit is contained in:
@@ -133,6 +133,7 @@ inline void Parser::append(std::string& decl, const std::string& token)
|
||||
|| token == "static"
|
||||
|| token == "mutable"
|
||||
|| token == "inline"
|
||||
|| token == "virtual"
|
||||
|| token == "volatile"
|
||||
|| token == "register"
|
||||
|| token == "thread_local")
|
||||
|
||||
Reference in New Issue
Block a user