diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2023-08-08 20:55:33 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2023-08-09 07:33:29 +0000 |
| commit | b555912e705924630de1f65b77d0139a20b5338b (patch) | |
| tree | 34d29e39269541171a3f813f75fd6bd01cd3d17f /clang/lib/Frontend | |
| parent | 6632b2584159ef0668a9a84dde6907b3d6f8e701 (diff) | |
| download | llvm-b555912e705924630de1f65b77d0139a20b5338b.zip llvm-b555912e705924630de1f65b77d0139a20b5338b.tar.gz llvm-b555912e705924630de1f65b77d0139a20b5338b.tar.bz2 | |
[libc] Better IntegerToString API
This patch is an alternative to D155902. It provides the following benefits:
- No buffer manual allocation and error handling for the general case
- More flexible API : width specifier, sign and prefix handling
- Simpler code
The more flexible API removes the need for manually tweaking the buffer afterwards, and so prevents relying on implementation details of IntegerToString.
Reviewed By: michaelrj, jhuber6
Differential Revision: https://reviews.llvm.org/D156981
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions
