Hi thanks for the update. I checked the nightlies page but only saw 12462 (20 June) so I tried that one. Agree that if you type out "if (a == literals::" then at that point you do get a tooltip showing the available values of the enum. However my issue was when you click or hover on a piece of code like "if (a == literals::UNEXPECTED_ERROR)" then no tooltip appears at all. The tool tip does appear if the code you are looking at has fully qualify the constant with its namespace and enum, or you don't...
Hopefully this is ok.. Hover over each literal name in the main code and for the first two you get the tooltip showing the enum details and value. But for UNEXPECTED_ERROR which is only qualified by namespace, you don't get any popup. Regards Andy #include <stdio.h> namespace literals { enum resultCodes { SUCCESS = 0, INVALID_NAME = 1, UNEXPECTED_ERROR = 99, }; }; using namespace literals; int main(int argc, char *argv[]) { int a = 0; if (a == SUCCESS) // tooltip { printf("SUCCESS\n"); } a = 1; if...
Tooltip is not displayed if constant only scoped by namespace