Fix not ignoring whitespace after macro parameter comma

This commit is contained in:
Jan 2023-12-30 14:16:49 +01:00
parent d3519c2f62
commit 799fa37c44
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
2 changed files with 3 additions and 3 deletions

View File

@ -685,7 +685,7 @@ void DefinesStreamProxy::ContinueMacroParameters(
state.m_parameters.emplace_back(state.m_current_parameter.str());
state.m_current_parameter.clear();
state.m_current_parameter.str(std::string());
m_parameter_state = ParameterState::AFTER_COMMA;
state.m_parameter_state = ParameterState::AFTER_COMMA;
}
}
else if (c == '(' || c == '[' || c == '{')

View File

@ -959,8 +959,8 @@ namespace test::parsing::impl::defines_stream_proxy
ExpectLine(&proxy, 1, "");
ExpectLine(&proxy, 2, "");
ExpectLine(&proxy, 3, "");
ExpectLine(&proxy, 4, "TEST");
ExpectLine(&proxy, 5, "TESTTWO(testArg)");
ExpectLine(&proxy, 4, "\"TEST\"");
ExpectLine(&proxy, 5, "\"TESTTWO(testArg)\"");
REQUIRE(proxy.Eof());
}