Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
Qt Creator 2.8.0, Qt Creator 3.0.0-rc1
-
None
-
Windows 8 x64
Description
The folowing line:
auto foo = [&]() -> int { return bar[1]; };
Causes the auto-identer to fail for all lines after this lambda statement. This problem exists for all lambdas with both an explicitly specified return type and the usage of operator[] as the final statement in the lambda.
additionally, a lambda such as:
auto foo = [&]() -> int { return 1; };
Will incorrectly align both the content of the lambda and the ending };. Everything else will be fine. The omission of the return specifier will prevent this erroneous behavior.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-15822 Auto-indent with lambda returning a type is broken
-
- Closed
-
-
QTCREATORBUG-16066 Indentation fails after function declaration with complex auto return type
-
- Closed
-
-
QTCREATORBUG-19593 Identation level error after a nice lambda in C++
-
- Closed
-
-
QTCREATORBUG-19739 Qt Creator cannot handle multiple angle brackets properly
-
- Closed
-
-
QTCREATORBUG-18090 Broken auto-indent after lambda
-
- Closed
-