mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
Merge pull request #3927 from thomkopp/feat/cppparser-global-ns-support
CppParser: Support return values which are specified to be in the global namespace
This commit is contained in:
commit
ed7aface46
@ -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")
|
||||
@ -379,7 +380,7 @@ const Token* Parser::parseClassMembers(const Token* pNext, Struct* /*pClass*/)
|
||||
poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE));
|
||||
|
||||
pNext = next();
|
||||
while (pNext->is(Token::IDENTIFIER_TOKEN) || pNext->is(Token::KEYWORD_TOKEN) || isOperator(pNext, OperatorToken::OP_COMPL))
|
||||
while (pNext->is(Token::IDENTIFIER_TOKEN) || pNext->is(Token::KEYWORD_TOKEN) || isOperator(pNext, OperatorToken::OP_COMPL) || isOperator(pNext, OperatorToken::OP_DBL_COLON))
|
||||
{
|
||||
switch (pNext->asInteger())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user