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

Class AllNonLocalMemory

An access to memory that is not known to be confined to a specific IRVariable, but is known to not access memory on the current function’s stack frame.

Import path

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

Direct supertypes

Indirect supertypes

Fields

Predicates

canDefineReadOnly

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

getIRFunction
getLocation
getType
getUniqueId
getVirtualVariable
isMayAccess
toStringInternal

Inherited predicates

canReuseSsafrom MemoryLocation0
getAnAllocation

Gets an allocation associated with this MemoryLocation.

from MemoryLocation0
getIRTypefrom MemoryLocation0
isAlwaysAllocatedOnStack

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

from MemoryLocation0
isReadOnly

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

from MemoryLocation0
toStringfrom MemoryLocation0

Charpred