ElectronVector / fake_function_framework

A plug-in for Ceedling to use the Fake Function Framework (fff) for mocking instead of Cmock.
MIT License
36 stars 13 forks source link

Extra semicolons generated #4

Closed pJunger closed 6 years ago

pJunger commented 7 years ago

Hi,

when compiling with GCC & the flag -pedantic, "warning: extra ';' [-Wpedantic]" pop up. This path should fix them.

mchernosky commented 6 years ago

Hmm... this breaks all of my tests. It looks like it removes semicolons all over the place where I'm expecting them, like here:

 Diff:
       @@ -1,2 +1,16 @@
       -DECLARE_FAKE_VOID_FUNC0(display_turnOffStatusLed);
       +#ifndef mock_display_H
       +#define mock_display_H
       +
       +#include "fff.h"
       +#include "fff_unity_helper.h"
       +#include "display.h"
       +
       +
       +DECLARE_FAKE_VOID_FUNC0(display_turnOffStatusLed)
       +
       +void mock_display_Init(void);
       +void mock_display_Verify(void);
       +void mock_display_Destroy(void);
       +
       +#endif // mock_display_H