Issue 97514
Summary [lldb] Unnamed zero enum is printed as empty string rather than `0x0`
Labels new issue
Assignees
Reporter adalisk-emikhaylov
    This comes up a lot when using enums as "strong typedefs":
```p
enum E {};

int main()
{
    E x = E(0);
    E y = E(1);
    E z = E(2);
    return 0;
}
```
Here:
* `p x` prints empty string
* `p y` prints `0x1`
* `p z` prints `0x2`

This is somewhat annoying. It would be nice to print `0x0` for consistency

Tested on lldb 18.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to