Main Content

Check for missing const qualifiers in model functions

Check ID: mathworks.misra.ModelFunctionInterface

Identify missing const qualifiers in input data pointers.

Description

Following the recommendations of this check increases the likelihood of generating MISRA C:2012 compliant code for embedded applications. The check flags input data pointers that do not have a const qualifier.

Available with Embedded Coder® and Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
A const qualifier is not defined for the input data pointer.Consider adding a const qualifier to the input data pointer.

See Also

  • MISRA C:2012, Rule 8.13

  • MISRA C (Embedded Coder)