Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
Qt Creator 3.5.0, Qt Creator 4.0.0, Qt Creator 4.5.0-rc1, Qt Creator 4.7.0, Qt Creator 4.10.0, Qt Creator 5.0.2
Description
When typing multi-line C++ code inside a lambda function that is indented relative to the outer scope, the editor ignores the lambda indentation and indents the lambda body relative to the outer scope.
For instance, try typing this piece of code:
std::thread // 1 ( []() //2 { try //3 { } catch() { } } ).detach();
Note that the lambda body is indented deeper than the std::thread declaration scope (1). Yet as I type the lambda body, the editor puts closing braces and the cursor after a newline to the lambda level (2) instead of one level deeper (3).
Attachments
Issue Links
- relates to
-
QTCREATORBUG-29125 Indentation of lambda functions is messed up
- Reported
- mentioned in
-
Page Loading...