ClickHouse/src/Common/MemorySanitizer.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
767 B
C++
Raw Normal View History

2019-09-12 11:40:01 +00:00
#pragma once
2021-10-02 07:13:14 +00:00
#include <base/defines.h>
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
#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
#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