SPeCS Packages Documentation
    Preparing search index...

    Abstract base class for MISRA-C rules that prohibit the use of function of a standard library.

    Need to implement/define:

    • analysisType
    • standardLibrary
    • invalidFunctions
    • name()

    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
    filesWithRetainedHeaders: Set<string> = ...

    Files where headers were kept because other library features are still used.

    invalidFiles: Map<FileJp, Call[]> = ...

    A map that keeps track of invalid usages found in each file.

    invalidFunctions: Set<string>

    Names of functions from standardLibrary that are forbidden. If the set is empty, all functions from standardLibrary are forbidden.

    priority: 1

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

    standardLibrary: string

    The name of the standard library

    unresolvedCalls: Map<string, string> = ...

    Calls that could not be resolved and their respective error message, stored to prevent repeated attempts of correction after rebuild.

    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