[clang] [clang-format] Stop treating the new expression as a lambda (PR #223266)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 19 00:36:05 PDT 2026
owenca wrote:
Adding `a` to `TypeNames` (e.g. `TypeNames: [a]`) or parenthesizing the type (i.e. `new (a *[])`) would solve the problem, so I'm not sure if we ought/need to fix it. If you really want to handle it, I'd suggest that you implement `UnwrappedLineParser::parseNew()` for C++ `new` expressions instead.
https://github.com/llvm/llvm-project/pull/223266
More information about the cfe-commits
mailing list