SPeCS Packages Documentation
    Preparing search index...

    MISRA-C Rule 16.7: A switch-expression shall not have essentially Boolean type.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    analysisType: SINGLE_TRANSLATION_UNIT = AnalysisType.SINGLE_TRANSLATION_UNIT

    Scope of analysis

    appliesTo: Set<string> = ...

    Standards to which this rule applies to

    context: MISRAContext
    priority: 5

    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