Make defines stream proxy able to accept comma within parameter values that are in parenthesis

This commit is contained in:
Jan
2021-12-02 22:19:48 +01:00
parent f5ed7880b0
commit 4b7a78100d
2 changed files with 29 additions and 4 deletions

View File

@ -514,10 +514,18 @@ void DefinesStreamProxy::ExtractParametersFromDefineUsage(const ParserLine& line
if (c == ',')
{
parameterValues.emplace_back(currentValue.str());
currentValue.clear();
currentValue.str(std::string());
valueHasStarted = false;
if (parenthesisDepth > 0)
{
valueHasStarted = true;
currentValue << c;
}
else
{
parameterValues.emplace_back(currentValue.str());
currentValue.clear();
currentValue.str(std::string());
valueHasStarted = false;
}
}
else if(c == '(')
{