Skip to content

Commit

Permalink
build type: fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed May 27, 2024
1 parent 5aa9fb5 commit 03425ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake
Submodule cmake updated 1 files
+31 −3 c4Project.cmake
15 changes: 14 additions & 1 deletion src/c4/char_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,29 @@ template<typename C>
struct char_traits;

template<>
struct char_traits<char> : public std::char_traits<char>
struct
char_traits<char> : public std::char_traits<char>
{
#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<wchar_t> : public std::char_traits<wchar_t>
{
#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;
};

Expand Down

0 comments on commit 03425ef

Please sign in to comment.