[Development] proposed clang-format improvements for lambda functions

Thiago Macieira thiago.macieira at intel.com
Fri Oct 10 00:53:52 CEST 2025


On Tuesday, 7 October 2025 21:57:57 Pacific Daylight Time Tim Blechmann via 
Development wrote:
> > 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)

I don't use clang-format and will not start doing so. I will only obey 
indentation that the Qt Creator default formatter can do.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel Data Center Group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5150 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20251009/96533784/attachment-0001.bin>


More information about the Development mailing list