Cppcheck error are raised on all code even with macro defined
I am running cppcheck with misra_c2012 on my project and I have an issue with the :preprocessor:
part in cppCheck.yml. All the code is analysed on my .c file, even the part only defined under certain conditions (#ifdef MACRO1) but I dont have the same behaviour on the header, where only the code common to every MACRO is analysed.