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

Class AllocationMemoryLocation

Import path

import semmle.code.cpp.ir.implementation.aliased_ssa.internal.AliasedSSA

Direct supertypes

Indirect supertypes

Known direct subtypes

    Fields

    Predicates

    getAnAllocation

    Gets an allocation associated with this MemoryLocation.

    getIRFunction
    getLocation
    getVirtualVariable
    isMayAccess
    isReadOnly

    Holds if the location cannot be overwritten except by definition of a MemoryLocation for which def.canDefineReadOnly() holds.

    Inherited predicates

    canDefineReadOnly

    Holds if a definition of this location can be the definition of a read-only use location.

    from MemoryLocation0
    canReuseSsafrom MemoryLocation0
    getIRTypefrom MemoryLocation0
    getTypefrom MemoryLocation0
    getUniqueIdfrom MemoryLocation0
    isAlwaysAllocatedOnStack

    Holds if the location always represents memory allocated on the stack (for example, a variable with automatic storage duration).

    from MemoryLocation0
    toStringfrom MemoryLocation0
    toStringInternalfrom MemoryLocation0

    Charpred