meekrosoft / fff

A testing micro framework for creating function test doubles
Other
761 stars 167 forks source link

Const pointer to const generates a wrong mock #79

Closed thomasfinchbr closed 4 years ago

thomasfinchbr commented 5 years ago

I'm using ceedling and fff framework.

When generating mock for functions like the one below there some errors. Function to generate mock for: void test(const void const test_t); Generated mock: DECLARE_FAKE_VALUE_FUNC1(void, const const void); It should be: DECLARE_FAKE_VALUE_FUNC1(void, const void* const);

This error generated warnings like this one, when using IAR compiler Arm 8.32.1: Warning[Pe083]: type qualifier specified more than once

Thanks.

thomasfinchbr commented 4 years ago

This issue was related do fff plugin for ceedling and to fff itself.

meekrosoft commented 4 years ago

Thanks for updating the issue!