According to YAML specification keys must be unique for a mapping node:
"The content of a mapping node is an unordered set of key/value node pairs, with
the restriction that each of the keys is unique".
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think this patch needs splitting up with the updates to the tests put in their own NFC patch.
llvm/unittests/Support/YAMLIOTest.cpp | ||
---|---|---|
108–110 | This comment doesn't really add anything that the test name can't capture. | |
113–114 | There's no real need to explain this here, since the comment is by the actual code logic itself. | |
115–117 | I see that this is the pattern used above, but is there any way of testing that the error message is correct? If not, we may well want the yaml2obj test (optionally in addition to the unit test). |
This comment doesn't really add anything that the test name can't capture.