Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.6.0
-
None
-
Mac OS X 10.8
Description
The following is a result when using ->QVector<float> returns from a lambda. If ->QVector<float> is omitted, the indention works correctly. Otherwise indention after the lambda expression is all messed up.
qDebug() << "Before!"; auto contourData = [this]()->QVector<float> { QVector<float> data; return data; }; qDebug() << "I get here";
I expected the indention to look something like this:
qDebug() << "Before!"; auto contourData = [this]()->QVector<float> { QVector<float> data; return data; }; qDebug() << "I get here";
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-9966 Incorrect indent for lambdas with explicit return type
-
- Closed
-