Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 5.0.1
Description
Typing
switch {
int tmp;
case 1:
will make default indent to go too right (see screenshot).
Switch body statements should be indented relative to case label.
What makes this bug entertaining is that this effect can leak outside the function.
First, I thought it is because "for (auto&&" which is at least underlined in red
but no.
It is extremely unintuitive because declaration inside switch block is legal and
it is indented correctly itself (1 indent after scope starts) and there is no red
underlining which could help.