I tried to use build wrapper but I get a parse error with SonarLint.
Consider 3 files:
I use the build wrapper to build foo.c.
My header file look like that:
STATIC_INLINE uint8_t foo(uint8_t val)
I get a parse error on third line of foo.h because STATIC_INLINE seems not to be resolved whereas it is defined in bar.h.
I use this macro in foo.c and macro resolution is correct (no parse error).
So, I wonder how does the build wrapper work.
Build wrapper seems to build an entry per compiled file, so per C file.
When SonarLint analyses a C file, it looks in the corresponding build output entry.
But there is no build output entry for header files, so how does it manage header files ?
Your help is welcome.