AllowShortLambdasOnASingleLine: None
LambdaBodyIndentation: OuterScope
rationale:
* single-line lambda functions are harmful, as one cannot set different
breakpoints for construction and invocation of the lambda function.
* indent lambda bodies at the outer scope, so that the indentation
reflects the nesting level.
I kind of like single-line lambdas, but I understand not doing them for
breakpoint purposes. Still, we may want them for simple parameters. That's a
stylistic choice.
single-line lambdas can look a bit more compact and may look nicer when
reading code. but the more complex / higher order the codebase, the more
harmful it gets (my past self often ended up recompiling code just in
order to set breakpoints)
I'm not sure I understand the second. More importantly, though: does Qt
Creator have a setting for that? If so, what it is? If not, then DOA.
when using the "built in formatter" instead of the clang-format
formatter, lambda bodies are indented at the outer scope as well. there
is no option in the built-in formatter to disable, it (the clang-format
formatter would use the clang-format file when present or can be
configured with a everything that clang-format supports)
--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development