[PATCH] D128605: [yaml] Extract output logic from yaml::Output

Nathan James via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 26 03:58:13 PDT 2022


njames93 created this revision.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: All.
njames93 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128605

Files:
  llvm/include/llvm/Support/YAMLTraits.h
  llvm/include/llvm/Support/YamlSerializer.h
  llvm/lib/Support/CMakeLists.txt
  llvm/lib/Support/YAMLSerializer.cpp
  llvm/lib/Support/YAMLTraits.cpp
  llvm/unittests/Support/CMakeLists.txt
  llvm/unittests/Support/YAMLSerializerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128605.440054.patch
Type: text/x-patch
Size: 43114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220626/5d16882a/attachment.bin>


More information about the llvm-commits mailing list