[clang] [clang-format] unexpected break after binOp '<<' (PR #69859)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 23 14:39:55 PDT 2023


owenca wrote:

> 2th solution is: Add new option that allowing specific behaviour, such as "BreakAfterStreamOperator" or "BreakAfterLessLessOperator" with options [ Leave | NoFitLine | All ].

We need a comprehensive solution to cover the following:
- when to break
- before or after the operator
- indenting or aligning
- binpack or one per line
- whether to break after a newline (`\n`, `endl`, etc.)

https://github.com/llvm/llvm-project/pull/69859


More information about the cfe-commits mailing list