[PATCH] D144889: [C2x] Support <string.h> in freestanding
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 27 08:57:53 PST 2023
aaron.ballman created this revision.
aaron.ballman added reviewers: clang-language-wg, jyknight, efriedma, joerg.
Herald added a project: All.
aaron.ballman requested review of this revision.
Herald added a project: clang.
This implements most of the support for WG14 N2524 (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2524.htm), which adds `<string.h>` to the list of headers required by a freestanding implementation.
We do not currently have builtins for `memccpy`, `memset_explicit`, or `strtok`, so those APIs are not yet exposed via our freestanding `string.h`. Further, we do not yet implement WG14 N3020 which changes the return type for some of the interfaces in string.h. So this patch does not claim full support for string.h yet (it adds the `__STDC_VERSION_STRING_H__` macro but leaves its value as `202300L` instead of `202311L` as required by the standard).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144889
Files:
clang/docs/ReleaseNotes.rst
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/string.h
clang/lib/Lex/ModuleMap.cpp
clang/test/C/C2x/n2524.c
clang/www/c_status.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144889.500820.patch
Type: text/x-patch
Size: 11141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230227/18dacd40/attachment-0001.bin>
More information about the cfe-commits
mailing list