AbstractMISRA context for error tracking and rule transformations state
Abstract ReadonlyanalysisScope of analysis: single unit or entire system.
Protected ReadonlyappliesStandards to which this rule applies to
ProtectedcontextReadonlypriorityA positive integer starting from 1 that indicates the rule's priority, determining the order in which rules are applied. By default, a rule has the lowest priority unless overridden.
List of dependent visits, which is empty by default
AbstractnameRule identifier according to MISRA-C:2012
An alias for 'name'
ProtectedappliesVerifies if the rule applies to the standard being used
AbstractapplyTransforms the joinpoint to comply with the MISRA-C rule
Joinpoint to transform
Report detailing the transformation result
Initial value stored in the shared context
ProtectedlogLogs a MISRA-C rule violation error
The joinpoint where the violation occurred
Description of the violation
AbstractmatchChecks if the joinpoint violates the guideline
Joinpoint to analyze
[logErrors=false] - Whether to log errors if a violation is detected
Returns true if the joinpoint violates the guideline, false otherwise
ProtectedrebuildRebuilds the program based on the current AST, clears stored data in the shared context, and resets all caches
Represents a MISRA Rule that detects and corrects violations in the code according to MISRA standards.
Need to implement/define: