Benjamin Kramer
bb156b52cf
[AST] Another attempt at fixing the ARM bots.
...
llvm-svn: 330690
2018-04-24 08:18:32 +00:00
Benjamin Kramer
2fdf81fb2c
[AST] Use a bit of trickery to make test pass on platforms where wchar_t is unsigned.
...
llvm-svn: 330689
2018-04-24 07:53:10 +00:00
Benjamin Kramer
33b7092601
[AST] strcmp/memcmp always compares unsigned chars.
...
This makes it return the right result in a couple of edge cases. The
wide versions always do the comparison on the underlying wchar_t type.
llvm-svn: 330656
2018-04-23 22:04:34 +00:00
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