This is an archive of the discontinued LLVM Phabricator instance.

[yaml] Extract output logic from yaml::Output
Needs ReviewPublic

Authored by njames93 on Jun 26 2022, 3:58 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Refactor all logic for writing a yaml file to its own class OutputStream.
This enables outputting yaml without having to specify a mapping.
It can also be used in cases when the mapping isn't trivial.

Diff Detail

Unit TestsFailed

Event Timeline

njames93 created this revision.Jun 26 2022, 3:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2022, 3:58 AM
njames93 requested review of this revision.Jun 26 2022, 3:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2022, 3:58 AM
njames93 updated this revision to Diff 440167.Jun 27 2022, 4:30 AM

Fixed failing test cases by reverting Bitset Flow change
Added infrastructure to simplify emitting complex types.

njames93 updated this revision to Diff 441547.Jun 30 2022, 4:10 PM

Tweak alias/anchor output.
remove code duplication.