This is an archive of the discontinued LLVM Phabricator instance.

[Test][lldb] Fix YAML mapping keys duplication. NFC.
ClosedPublic

Authored by asi-sc on Feb 10 2023, 4:39 AM.

Details

Summary

YAML specification does not allow keys duplication an a mapping. However, YAML
parser in LLVM does not have any check on that and uses only the last key entry.
In this change duplicated keys are merged to satisfy the spec.

Diff Detail

Event Timeline

asi-sc created this revision.Feb 10 2023, 4:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 4:39 AM
asi-sc requested review of this revision.Feb 10 2023, 4:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 4:39 AM

Similar fixes review: D141848
LLVM YAML parser improvement that depends on this: D140474

DavidSpickett accepted this revision.Feb 13 2023, 1:58 AM
DavidSpickett added a reviewer: DavidSpickett.
DavidSpickett added a subscriber: DavidSpickett.

LGTM.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 13 2023, 5:42 AM
This revision was automatically updated to reflect the committed changes.