Richard Smith
5e29dd3fe0
P0426: Make the library implementation of constexpr char_traits a little easier
...
by providing a memchr builtin that returns char* instead of void*.
Also add a __has_feature flag to indicate the presence of constexpr forms of
the relevant <string> functions.
llvm-svn: 292555
2017-01-20 00:45:35 +00:00
Richard Smith
8110c9df22
Support constant expression evaluation for wchar_t versions of simple string
...
functions, in order to support constexpr std::char_traits<wchar_t>.
llvm-svn: 288193
2016-11-29 19:45:17 +00:00
Richard Smith
e950795a03
[c++1z] Support constant folding for __builtin_strchr and __builtin_memchr.
...
llvm-svn: 286699
2016-11-12 01:39:56 +00:00
Richard Smith
e151bab2fc
[c++1z] Add constant-folding support for strcmp, strncmp, and memcmp, to
...
support constexpr char_traits.
llvm-svn: 286678
2016-11-11 23:43:35 +00:00