mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-25 18:22:59 +02:00 
			
		
		
		
	CppParser: Support for return values in global ns
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.
This commit is contained in:
		| @@ -379,7 +379,7 @@ const Token* Parser::parseClassMembers(const Token* pNext, Struct* /*pClass*/) | |||||||
| 	poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE)); | 	poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE)); | ||||||
|  |  | ||||||
| 	pNext = next(); | 	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()) | 		switch (pNext->asInteger()) | ||||||
| 		{ | 		{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thomas Kopp
					Thomas Kopp