Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
Qt Creator 4.12.2
-
None
Description
The auto creation of switch statement does not work with scoped enums.
For example :
enum T2
{ T2_A, T2_B, T2_C };
...
T2 val2;
switch (val2) // works correctly, option appears in refactor menu
but
enum class T1 {
A,
B,
C
};
...
T1 val;
switch (val) // does not work, option does not show up in refactor menu
It would be nice if the auto creation of switch statement also worked with scoped enums.