SPeCS Packages Documentation
    Preparing search index...

    MISRA-C Rule 8.9: An object should be defined at block scope if its identifier only appears in a single function

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    analysisType: SYSTEM = AnalysisType.SYSTEM

    Scope of analysis

    appliesTo: Set<string> = ...

    Standards to which this rule applies to

    context: MISRAContext
    priority: number = Number.MAX_VALUE

    A 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.

    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