RESOLVED FIXED 191036
[lldb-webkit] Last aliased enumerator in OptionSet is printed; should print first enumerator
https://bugs.webkit.org/show_bug.cgi?id=191036
Summary [lldb-webkit] Last aliased enumerator in OptionSet is printed; should print f...
Daniel Bates
Reported 2018-10-29 11:40:47 PDT
Consider the following enum: enum Flag { A = 1 << 0, AAlias = A, } Pretty-printing OptionSet<Flag>(Flag::A) prints the last-most enumerator with value 2, AAlias. But I propose that it print the first enumerator with value 2, A, because aliased enumerators tend to be used in bounds check as opposed to actual set members.
Attachments
Patch and unit test (4.47 KB, patch)
2018-10-29 11:44 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2018-10-29 11:44:54 PDT
Created attachment 353304 [details] Patch and unit test
Daniel Bates
Comment 2 2018-10-29 13:57:19 PDT
Comment on attachment 353304 [details] Patch and unit test Clearing flags on attachment: 353304 Committed r237564: <https://trac.webkit.org/changeset/237564>
Daniel Bates
Comment 3 2018-10-29 13:57:20 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2018-10-29 13:58:29 PDT
Note You need to log in before you can comment on or make changes to this bug.