Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[YAML] Support serializing MutableArrayRef
While the YAML format itself doesn't support fixed-sized arrays, some of the data structures we encode in and out of YAML (specifically in ObjectYAML) are actually fixed-sized arrays which we end up expressing as resizable arrays. Enabling the YAML tooling to support reading and writing from fixed-sized arrays using MutableArrayRef can simplify some of the error reporting and use logic for cases where the sizes of arrays are defined by the target format. Note: my SFINAE-foo isn't the best, so if there is a cleaner way to implement the traits please advise. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D140427
- Loading branch information
1 parent
750e1c8
commit a95717e
Showing
2 changed files
with
102 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters