This is an archive of the discontinued LLVM Phabricator instance.

[libc] add printf hex conversion
ClosedPublic

Authored by michaelrj on May 20 2022, 11:51 AM.

Details

Summary

The hex converter handles the %x and %X conversions.

Diff Detail

Event Timeline

michaelrj created this revision.May 20 2022, 11:51 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 20 2022, 11:51 AM
michaelrj requested review of this revision.May 20 2022, 11:51 AM

This patch doesn't have comprehensive unit tests yet, but should be good to go once I add those.

michaelrj updated this revision to Diff 435732.Jun 9 2022, 4:41 PM

add tests and header guards

rebase on new changes and move length modifier handling to a shared function.

sivachandra accepted this revision.Jun 16 2022, 9:10 AM
This revision is now accepted and ready to land.Jun 16 2022, 9:10 AM
This revision was automatically updated to reflect the committed changes.