Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 4.4.1
-
f99094a0b837e46c38ce0c7b93388ebb7f45d216
Description
The indentation is not correct in the following situation after type the return in the last line:
struct Foo
{
int i;
char c;
double d;
};
int main()
{
Foo f { 1, 'a', 2.3 };
auto [ i, c, d ] = f;
^
| YOUR CURSOR IS HERE
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-23959 Autoindent parser fails to correctly indent c++14 code.
- Closed
-
QTCREATORBUG-24228 incorrect indentation after structured bindings (c++17)
- Closed
-
QTCREATORBUG-24427 Indentation rules break down after decomposition declaration
- Closed
-
QTCREATORBUG-24517 Bad indentation after structured binding
- Closed
-
QTCREATORBUG-24651 After a structured binding the automatic indentation is wrong
- Closed
-
QTCREATORBUG-24854 Indentation error after auto [] word
- Closed
-
QTCREATORBUG-25172 Broken identation on tuple structured binding
- Closed
- relates to
-
QTCREATORBUG-20824 Wrong indentation after assignation : x[y=z]
- Closed