MISRA C 23's MISRA23_21.17 is part of a multicheck ( M18-0-5, CPP_L006, MISRA08_18-0-5, MISRA23_21.17 and MISRA23_21.2.2 )
The problem is that MISRA23_21.17 has an exemption that the others do not:
Let's add an option to MISRA23_21.17 to check the destination parameter for the functions in 'func_list' and see if it was used as an argument to 'sizeof'. If the destination was used as a parameter to sizeof, we assume the text in the exemption was performed.
MISRA C 23's MISRA23_21.17 is part of a multicheck ( M18-0-5, CPP_L006, MISRA08_18-0-5, MISRA23_21.17 and MISRA23_21.2.2 )
The problem is that MISRA23_21.17 has an exemption that the others do not:
Let's add an option to MISRA23_21.17 to check the destination parameter for the functions in 'func_list' and see if it was used as an argument to 'sizeof'. If the destination was used as a parameter to sizeof, we assume the text in the exemption was performed.