2019-09-12 11:40:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-02 07:13:14 +00:00
|
|
|
#include <base/defines.h>
|
2021-02-23 04:34:58 +00:00
|
|
|
|
2019-10-16 02:49:29 +00:00
|
|
|
#ifdef __clang__
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wreserved-id-macro"
|
|
|
|
#endif
|
|
|
|
|
2021-05-31 08:05:40 +00:00
|
|
|
#undef __msan_unpoison
|
|
|
|
#undef __msan_test_shadow
|
|
|
|
#undef __msan_print_shadow
|
|
|
|
#undef __msan_unpoison_string
|
|
|
|
|
2022-03-11 21:47:28 +00:00
|
|
|
#define __msan_unpoison(X, Y) /// NOLINT
|
|
|
|
#define __msan_test_shadow(X, Y) (false) /// NOLINT
|
|
|
|
#define __msan_print_shadow(X, Y) /// NOLINT
|
|
|
|
#define __msan_unpoison_string(X) /// NOLINT
|
2021-02-23 04:34:58 +00:00
|
|
|
|
|
|
|
#if defined(ch_has_feature)
|
|
|
|
# if ch_has_feature(memory_sanitizer)
|
|
|
|
# undef __msan_unpoison
|
|
|
|
# undef __msan_test_shadow
|
|
|
|
# undef __msan_print_shadow
|
|
|
|
# undef __msan_unpoison_string
|
|
|
|
# include <sanitizer/msan_interface.h>
|
|
|
|
# endif
|
2019-09-12 11:40:01 +00:00
|
|
|
#endif
|
2019-10-16 02:49:29 +00:00
|
|
|
|
|
|
|
#ifdef __clang__
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#endif
|