[YAMLParser] Support block nodes when parsing YAML strings.
authorZain Jaffal <z_jaffal@apple.com>
Mon, 26 Jun 2023 12:07:56 +0000 (13:07 +0100)
committerZain Jaffal <z_jaffal@apple.com>
Mon, 26 Jun 2023 13:30:28 +0000 (14:30 +0100)
commite800967eb1105177f561732814297bfecfaf63c2
treeab21972808d4777e16d8f9ab2a10fbb7d254f2e7
parentdac973226a600e93be6fafe742d7f5fe534b1572
[YAMLParser] Support block nodes when parsing YAML strings.

Previously if a string is in the format
```
|
      val
      val2
      val3
```
Yaml parser will error out without parsing the string. The mentioned pattern is a valid yaml str and should be parsed.

Differential Revision: https://reviews.llvm.org/D153760
llvm/lib/Remarks/YAMLRemarkParser.cpp
llvm/unittests/Remarks/YAMLRemarksParsingTest.cpp