[libc-commits] [PATCH] D117258: [WIP][libc] add core parsing for printf
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jan 13 15:10:51 PST 2022
michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
michaelrj requested review of this revision.
Add the core parsing logic to handle printf, as well as an entrypoint
for sprintf. Most of the conversions are not yet done (the only ones
that are complete are % c s and n), but adding them should be simple
from the printf side, though the business logic will be complex.
- StringConversionWithWidth segfaults if there are more than 4 sprintf tests in it. This is because somehow on the fourth call, the pointer in "string_arg" is somehow defined as the value of the characters in the name of the test. I have no idea how, this makes no sense.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 18099 bytes
Desc: not available
More information about the libc-commits