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.
Created attachment 353304 [details] Patch and unit test
Comment on attachment 353304 [details] Patch and unit test Clearing flags on attachment: 353304 Committed r237564: <https://trac.webkit.org/changeset/237564>
All reviewed patches have been landed. Closing bug.
<rdar://problem/45648188>