Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.12.4
-
None
Description
After inserting a decomposition declaration (Added in C++17. Also known as structured binding declaration) the editor doesn't respect the indentation rules right after that line.
Steps to reproduce:
Result
- Insert these lines somewhere in code:
int a[2] = {1,2};
auto [x, y] = a; - Stand at the end of the second line and pres Enter.
Result:
The cursor jumps to the next line without respecting the indentation rules (set in settings).
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-19238 indentation is wrong with c++17 structured binding
- Closed