It will also consider a macro declared in a file included behing #ifdef... (even if the condition is false) but it will not check for usages of that macro in that file if the condition is false, making that macro a violation of Misra2.5
Because of that we won't be able to fix all Misra2.5 right now
cppcheck does not work well for Misra2.5 for 2 reasons:
SOMETHING
as unused whenCANFD
is not defined in the following example:#ifdef...
(even if the condition is false) but it will not check for usages of that macro in that file if the condition is false, making that macro a violation of Misra2.5Because of that we won't be able to fix all Misra2.5 right now