Skip to content

Conversation

@kastiglione
Copy link
Contributor

@kastiglione kastiglione commented Dec 5, 2024

Adds a synthetic formatter for llvm::Expected<T>. The synthetic value will have a single child, either value or error.

Copy link
Collaborator

@jimingham jimingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This will look natural in printing, and programmatically checking the child name to see if you have a value or an error is straightforward.

@kastiglione kastiglione merged commit 398f3b3 into llvm:main Dec 6, 2024
9 checks passed
@kastiglione kastiglione deleted the lldb-Add-synthetic-formatter-for-llvm-Expected branch December 6, 2024 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants