CodeQL library for C/C++
codeql/cpp-all 0.12.12-dev (changelog, source)
Search

Class IRParameter

An IR variable which acts like a function parameter, including positional parameters and the temporary variables generated for this and ellipsis parameters.

Import path

import semmle.code.cpp.ir.implementation.raw.IRVariable

Direct supertypes

Indirect supertypes

Known direct subtypes

    Inherited fields

    Predicates

    getIndex

    Gets the zero-based index of this parameter. The this parameter has index -1.

    Inherited predicates

    getAST

    DEPRECATED: Alias for getAst

    from IRVariable
    getAst

    Gets the AST node that declared this variable, or that introduced this variable as part of the AST-to-IR translation.

    from IRVariable
    getEnclosingFunction

    Gets the function that references this variable.

    from IRVariable
    getEnclosingIRFunction

    Gets the IR for the function that references this variable.

    from IRVariable
    getIRType

    Gets the language-neutral type of the variable.

    from IRVariable
    getLanguageType

    Gets the type of the variable.

    from IRVariable
    getLocation

    Gets the source location of this variable.

    from IRVariable
    getType

    Gets the type of the variable.

    from IRVariable
    getUniqueId

    Gets an identifier string for the variable. This identifier is unique within the function.

    from IRVariable
    isReadOnly

    Holds if this variable’s value cannot be changed within a function. Currently used for string literals, but could also apply to const global and static variables.

    from IRVariable
    toString

    Gets a textual representation of this element.

    from IRVariable

    Charpred