29#define __has_feature(x) 0
31#ifndef __has_extension
32#define __has_extension __has_feature
35#if __has_feature(memory_sanitizer) || defined(__SANITIZE_MEMORY__)
36#include <sanitizer/msan_interface.h>
52 static void Allocated(
const void* addr,
size_t size);
56 template <
typename T>
static void Allocated(
const T& elt);
71#if __has_feature(memory_sanitizer) || defined(__SANITIZE_MEMORY__)
73 __msan_allocated_memory(addr, size);
77 [[maybe_unused]]
size_t size) {
95#if __has_feature(memory_sanitizer) || defined(__SANITIZE_MEMORY__)
97 __msan_check_mem_is_initialized(addr, size);
101 [[maybe_unused]]
size_t size) {
int RAWSPEED_READONLY size() const
static void Allocated(const void *addr, size_t size)
MSan & operator=(const MSan &)=delete
static void CheckMemIsInitialized(const void *addr, size_t size)
MSan & operator=(MSan &&)=delete
MSan(const MSan &)=delete