CodeQL library for C/C++
Search

Class IRAutomaticUserVariable

A user-declared variable that is allocated on the stack. This includes all parameters and non-static local variables.

Import path

import semmle.code.cpp.ir.IR

Direct supertypes

Indirect supertypes

Known direct subtypes

    Fields

    Inherited fields

    Predicates

    getVariable

    Gets the original user-declared variable.

    Inherited predicates

    getAST

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

    from IRUserVariable
    getEnclosingFunction

    Gets the function that references this variable.

    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
    getEnclosingIRFunction

    Gets the IR for the function that references this variable.

    from IRVariable
    getIRType

    Gets the language-neutral type of the variable.

    from IRVariable
    getIRType

    Gets the language-neutral type of the variable.

    from IRVariable
    getLanguageType

    Gets the type of the variable.

    from IRUserVariable
    getLocation

    Gets the source location of this variable.

    from IRVariable
    getLocation

    Gets the source location of this variable.

    from IRVariable
    getType

    Gets the type of the 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 IRUserVariable
    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
    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 IRUserVariable