Main Content

Generate justification comments for known MISRA™ violations

Add annotations to suppress known MISRA/AUTOSAR violations

Since R2023a

Description

App Configuration Pane: Advanced

Configuration Objects: coder.CodeConfig | coder.EmbeddedCodeConfig

Annotates the generated C/C++ code to suppress known MISRA and AUTOSAR violations.

Settings

Off

This value is the default value.

The code generator does not add annotations to the generated C/C++ code.

On

The code generator adds annotations to the generated C/C++ code only if GenerateComments is also true.

Programmatic Use

Property: JustifyMISRAViolations
Values: false | true
Default: false

Version History

Introduced in R2023a