Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 4.7.0, Qt Creator 4.8.0-beta1
-
None
Description
When opening curly braces for lambdas, they are indented all the way back to the indentation line of the current scope, like so:
std::transform(container.begin(), container.end(), std::back_inserter(targetContainer), [](const QString& string) { return string.front(); };
However, the lambda body is still part of the std::transform call, so users may prefer to indent like so (or similar):
std::transform(container.begin(), container.end(), std::back_inserter(targetContainer), [](const QString& string) { return string.front(); };