diff --git a/cmake b/cmake index fd087a8..675073e 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit fd087a897dc2408e102ee5cb7c0f9266e14efe2e +Subproject commit 675073e8739fc2a59c886188818923baa003c974 diff --git a/src/c4/char_traits.hpp b/src/c4/char_traits.hpp index b080659..a0a1f7d 100644 --- a/src/c4/char_traits.hpp +++ b/src/c4/char_traits.hpp @@ -17,16 +17,29 @@ template struct char_traits; template<> -struct char_traits : public std::char_traits +struct +char_traits : public std::char_traits { +#if defined(__clang__) + __attribute__((no_sanitize("address"))) +#endif constexpr static const char whitespace_chars[] = " \f\n\r\t\v"; +#if defined(__clang__) + __attribute__((no_sanitize("address"))) +#endif constexpr static const size_t num_whitespace_chars = sizeof(whitespace_chars) - 1; }; template<> struct char_traits : public std::char_traits { +#if defined(__clang__) + __attribute__((no_sanitize("address"))) +#endif constexpr static const wchar_t whitespace_chars[] = L" \f\n\r\t\v"; +#if defined(__clang__) + __attribute__((no_sanitize("address"))) +#endif constexpr static const size_t num_whitespace_chars = sizeof(whitespace_chars) - 1; };