[Lldb-commits] [PATCH] D85951: Add Python iterator & getitem for SBTypeEnumMemberList

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 13 17:49:35 PDT 2020


jingham created this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
jingham requested review of this revision.
Herald added a subscriber: JDevlieghere.

This class represents the members of an enum type, but wasn't terribly convenient to use because it only had the programmatic interface and no Python iterator.  I added that, and also made access by element name work.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85951

Files:
  lldb/bindings/interface/SBTypeEnumMember.i
  lldb/test/API/lang/c/enum_types/TestEnumTypes.py
  lldb/test/API/lang/c/enum_types/main.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85951.285534.patch
Type: text/x-patch
Size: 6053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200814/9e38ecec/attachment-0001.bin>


More information about the lldb-commits mailing list