mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
810023a65c
If the order of <common/defines.h> and c++ header will be wrong the compilation will be broken. v2: rename __ch_has_feature to ch_has_feature to fix -Wreserved-id-macro v3: do not fallback to 0
28 lines
618 B
C++
28 lines
618 B
C++
#pragma once
|
|
|
|
#include <common/defines.h>
|
|
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wreserved-id-macro"
|
|
#endif
|
|
|
|
#define __msan_unpoison(X, Y)
|
|
#define __msan_test_shadow(X, Y) (false)
|
|
#define __msan_print_shadow(X, Y)
|
|
#define __msan_unpoison_string(X)
|
|
|
|
#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
|
|
#endif
|
|
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|