NFC: PointerLikeTypeTraits::NumLowBitsAvailable enum > static int
Could you provide a small example of the problem here? LLVM does emit debug info for used enums (granted, if it's used as a template parameter it looks like LLVM does not emit them - but if it's used in a runtime evaluated expression it does/should & it looks like NumLowBitsAvailable is used in that way pretty regularly)
Does the debug info have the enum/enumerator/constant, but GDB provide no way to look it up?
I was not able to get to NumLowBitsAvailable through Python GDB if it's an enumeration inside an anonymous struct.
- If it's in a named struct, I could use gdb.lookup_type(enum_name).fields() and parse the Field.name and get the Field.enumvalue.
- If it's a static member, I can do gdb.parse_and_evel(enumeration_name) or gdb.lookup_symbol(enumeration_name).value().
I'm not sure anymore if I tried a named struct with the latter, but possibly it would work.
The current status is a mix of anonymous enums and 'static const', so maybe unifying it is the easiest way to make it work.
Ah, if I'm reading the other review correctly, this change was/is no longer needed - ah well, it's committed now & not harmful (a little questionable given the lack of storage... but I think it might as well stay that way in hopes of the C++17 future state of things).