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:
Thomas Kopp 2022-04-25 13:49:03 +02:00
parent 507d13ede7
commit 20b201dd7d

View File

@ -133,6 +133,7 @@ inline void Parser::append(std::string& decl, const std::string& token)
|| token == "static" || token == "static"
|| token == "mutable" || token == "mutable"
|| token == "inline" || token == "inline"
|| token == "virtual"
|| token == "volatile" || token == "volatile"
|| token == "register" || token == "register"
|| token == "thread_local") || token == "thread_local")