Check safety-related code generation identifier settings
Check ID:
mathworks.hism.hisl_0049
Check model configuration for code generation settings that can impact safety.
Description
This check verifies that model configuration parameters for code generation are set optimally for a safety-related application.
Available with Simulink® Check™.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
The minimum number of characters specified for generating name mangling strings is less than four. You can use this option to minimize the likelihood that parameter and signal names will change during code generation when the model changes. Use of this option assists with minimizing code differences between file versions, decreasing the effort to perform code reviews. | Set Minimum mangle length (Embedded Coder) on the Code Generation > Identifier pane in the Configuration Parameters dialog box or the
parameter MangleLength to a value of 4 or
greater. |
Action Results
Clicking Modify Settings configures model code generation settings that can impact safety.
Subchecks depend on the results of the subchecks noted with D in the results table in the Model Advisor window.
Capabilities and Limitations
Does not run on library models.
Does not allow exclusions of blocks or charts.
Does not highlight parameter names in report without Embedded Coder®.
See Also
hisl_0049: Configuration Parameters > Code Generation > Identifiers
Model Configuration Parameters: Comments (Simulink Coder)
Model Configuration Parameters: Code Generation Identifiers (Simulink Coder)
Model Configuration Parameters: Code Generation Interface (Simulink Coder)
Model Configuration Parameters: Code Style (Embedded Coder)