This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] reorganize structs in printf
ClosedPublic

Authored by michaelrj on Feb 8 2023, 10:38 AM.

Details

Summary

Previously the type description structs were defined in the parser. For
the fuzzing targets we'll need to use those, so I've moved them into
core_structs.h. Additionally I've renamed the function for determining
the TypeDesc from a given type. Previously it shared its name with
get_type_desc which is a related but separate function that is a part of
the parser.

Diff Detail

Event Timeline

michaelrj created this revision.Feb 8 2023, 10:38 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 8 2023, 10:38 AM
michaelrj requested review of this revision.Feb 8 2023, 10:38 AM
lntue added inline comments.Feb 8 2023, 12:08 PM
libc/src/stdio/printf_core/core_structs.h
93

You can drop static here.

97
98
michaelrj updated this revision to Diff 496171.Feb 9 2023, 10:17 AM
michaelrj marked 3 inline comments as done.

clean up type_desc_from_type

lntue accepted this revision.Feb 9 2023, 10:33 AM
This revision is now accepted and ready to land.Feb 9 2023, 10:33 AM
This revision was landed with ongoing or failed builds.Feb 9 2023, 1:45 PM
This revision was automatically updated to reflect the committed changes.