ResourcesΒΆ

Manage dynamic resources tracked by semantic analysis

Nested Rules

Resources-C++ArrayHeapMemory

Representation of heap memory as allocated by array-new operator new[]

Resources-C++HeapMemory

Representation of heap memory as allocated by operator new

Resources-C++PMR

Representation of heap memory as managed by memory_resources from std::pmr

Resources-CalendarTime

Representation of the result of gmtime() or localtime()

Resources-CudaAsyncMemory

Representation of stream-ordered device memory as allocated by cudaMallocAsync

Resources-CudaDeviceMemory

Representation of device memory as allocated by cudaMalloc

Resources-CudaDriverAsyncMemory

Representation of stream-ordered device memory as allocated by cuMemAllocAsync

Resources-CudaHostMemory

Representation of host memory as allocated by cudaHostAlloc or cudaMallocHost

Resources-CudaManagedMemory

Representation of managed device memory as allocated by cudaMallocManaged

Resources-CustomResource

User-provided description for a dynamically allocated/freed resource

Resources-Environment

Representation of the result of getenv()

Resources-FileHandle

Representation of a file handle

Resources-HeapMemory

Representation of standard C heap memory

Resources-Locale

Representation of the current locale

Resources-MSAlignedHeapMemory

Representation of MS aligned heap memory

Resources-Mutex

Representation of a mutex

Resources-StrError

Representation of the result of strerror()

Resources-TextualTime

Representation of the result of asctime() or ctime()

Resources-Thread

Representation of a thread

Resources-UniquePtrHeapMemory

Representation of heap memory as allocated by make_unique

Options

  • Setting an option for this rule means setting the default for all nested rules.

  • The following places define options that affect this rule: Analysis-GlobalOptions

  • This rule has no individual options.