[PATCH] D116113: Add LLDB synthetic child and summary scripts for llvm::SmallVector, llvm::Optional, llvm::ErrorOr and llvm::Expected.

Greg Clayton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 21 08:21:06 PST 2021

clayborg created this revision.
clayborg added reviewers: labath, teemperor, aprantl.
Herald added subscribers: usaxena95, arphaman.
clayborg requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This allows us to see the contents of the SmallVector just like std::vector and also adds a summary string that shows the size of the array.

For llvm::Optional, the value will show as llvm::None when it has no value, or it will show the value of the type T.

For llvm::Error or, it will show the std::error_code as a structure or the value if it has a value.

For llvm::Expected, it will show the dynamic classname of the contained error, or the value.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116113.395690.patch
Type: text/x-patch
Size: 22319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211221/13a88057/attachment-0001.bin>

More information about the cfe-commits mailing list