Protected
contextMISRA context for error tracking and rule transformations state
Readonly
ruleIDUnique identifier for the MISRA rule.
Protected
logMISRAErrorLogs a MISRA-C rule violation error
The joinpoint where the violation occurred
Description of the violation
Protected
logMISRAWarningLogs a warning from automatic MISRA-C correction, which may change the program's behavior
The joinpoint where the correction was applied
Description of the warning
Checks if the given joinpoint is a switch statement where the default label appears either as first of last label
Joinpoint to analyze
[logErrors=false] - Whether to log errors if a violation is detected
Returns true if the joinpoint violates the rule, false otherwise
Transforms a switch statement so that the default case appears as the last label
Joinpoint to transform
Report detailing the transformation result
MISRA Rule 16.5: A default label shall appear as either the first or the last switch label of a switch statement