MISRA-C 2004 Options

The following options can be used with the armcl compiler to help you identify source code in your application that may violate the guidelines set forth in the MISRA-C:2004 rules.

The tiarmclang compiler does not provide this capability.

armcl Option tiarmclang Option
–check_misra=<all|required|advisory|none|<rule>> not supported
The armcl compiler’s –check_misra option enables checking of the specified MISRA-C:2004 rules. By default, all of the MISRA-C:2004 rules are checked, but you may select a subset of rules to be checked via the ‘required’ or ‘advisory’ arguments to the –check_misra option. You can also check a specific MISRA-C:2004 <rule>.
armcl Option tiarmclang Option
–misra_advisory=<error|warning|remark|suppress> not supported
You can set the diagnostic severity to be reported for violations of advisory MISRA-C:2004 rules using armcl’s –misra_advisory option.
armcl Option tiarmclang Option
–misra_required=<error|warning|remark|suppress> not supported
You can set the diagnostic severity to be reported for violations of required MISRA-C:2004 rules using armcl’s –misra_required option.