SPeCS Packages Documentation
    Preparing search index...

    Abstract base class for MISRA-C rules that enforce constraints on identifier uniqueness where renaming may be required.

    Need to implement:

    • analysisType
    • name()
    • match($jp, logErrors)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    analysisType: AnalysisType

    Specifies the scope of analysis: single unit or entire system.

    appliesTo: Set<string> = ...

    Standards to which this rule applies to

    context: MISRAContext
    invalidIdentifiers: any[] = []

    Identifiers with invalid names that require renaming.

    priority: 2

    A positive integer starting from 1 that indicates the rule's priority, determining the order in which rules are applied.

    Accessors

    • get dependencies(): Visit[]

      Returns Visit[]

      List of dependent visits, which is empty by default

    • get ruleID(): string

      An alias for 'name'

      Returns string

    Methods

    • Rebuilds the program based on the current AST, clears stored data in the shared context, and resets all caches

      Returns void