Question:
How can we suppress all MISRA rule for a particular function in CCES?
Answer:
We can suppress all MISRA rule checking for particular functions by doing the following:
#if defined(_MISRA_RULES)
#pragma diag(push)
#pragma diag(suppress:misra_rules_all)
#endif /* _MISRA_RULES */
void my_function_using_macros(void)
{
}
#if defined(_MISRA_RULES)
#pragma diag(pop)
#endif /* _MISRA_RULES */