[PATCH] D128770: [yaml] Add support for Anchors and Aliases to yaml::Input

Nathan James via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 16:29:11 PDT 2022


njames93 created this revision.
njames93 added reviewers: dblaikie, chandlerc, Bigcheese, lattner.
Herald added subscribers: jeroen.dobbelaere, hiraditya.
Herald added a project: All.
njames93 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adds the necessary machinery to refer to anchors when parsing yaml

  yaml
  ---
  Foo: &FB 'FooBar'
  Bar: *FB
  ...

This will be parsed as a dictionary containing {Foo: 'FooBar', Bar: 'FooBar'}


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128770

Files:
  llvm/include/llvm/Support/YAMLTraits.h
  llvm/lib/Support/YAMLParser.cpp
  llvm/lib/Support/YAMLTraits.cpp
  llvm/unittests/Support/YAMLIOTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128770.440807.patch
Type: text/x-patch
Size: 12838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220628/aa007727/attachment-0001.bin>


More information about the llvm-commits mailing list