SPeCS Packages Documentation
    Preparing search index...

    MISRA-C Rule 21.8: The library functions abort, exit, getenv and system of <stdlib.h> shall not be used

    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
    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 = "stdlib.h"

    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