[libcxx-commits] [PATCH] D136724: [libc++][RFC] Add nullability annotations to string
Eric Fiselier via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 27 11:09:30 PDT 2022
EricWF added inline comments.
================
Comment at: libcxx/include/string:4629
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20
- basic_string<char> operator "" s( const char *__str, size_t __len )
+ basic_string<char> operator "" s( const char* _Nullable __str, size_t __len )
{
----------------
Can these functions be called directly? If not, I don't see how `null` could ever be passed to the function as it's not a c string literal.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136724/new/
https://reviews.llvm.org/D136724
More information about the libcxx-commits
mailing list