[clang] [clang-format] Allow merging single-line reconstructed macro calls (PR #234728)
Jesse Rosenstock via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 04:31:05 PDT 2026
jmr wrote:
> > [2nd example] `void f() { [] { return y; }(); }`
>
> the second one I'd argue is imo too complex to put onto a single line, but I understand this is a judgement call.
It seems like the rule should be that if the statement formats as one line and it's short enough to put the whole function on one line, then it should all be one line with short functions.
https://github.com/llvm/llvm-project/pull/234728
More information about the cfe-commits
mailing list