[lldb-dev] Enumerating the members of an enum
russ at eatnumber1.com
Sun Oct 13 17:14:28 PDT 2013
According to the C11 standard, N1570, §220.127.116.11.3, "The identifiers in an
enumerator list are declared as constants that have type int". Based on
this, wouldn't it make most sense to have a function that returns an
SBTypeList of ints?
Is there an easy work around for this missing bit of API, or shall I add
the necessary pieces?
On Mon, Oct 7, 2013 at 10:45 AM, Enrico Granata <egranata at apple.com> wrote:
> As far as I can tell/remember, this is missing API
> Technically, it would not be an SBTypeList since the entries in an
> enumerator are *NOT* types.
> We would probably have to come up with a new class like an
> SBEnumeratorEntry (I am sure better names are possible :-) that wraps the
> notion of a (numeric_value,string_name) pair
> Enrico Granata
> 📩 egranata@.com
> ☎️ 27683
> On Oct 7, 2013, at 12:23 AM, Russell Harmon <russ at eatnumber1.com> wrote:
> Is there a way to enumerate the fields of an enum (e.x. get an SBTypeList
> from an enum), or is that missing API?
> Russell Harmon
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev