[clang] [clang-format] Fix assertion in alignChainedConditionals (PR #199112)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 4 11:59:52 PDT 2026


https://github.com/HazardyKnusperkeks requested changes to this pull request.

If replacing the `and`  with a `&&` we have no problem. The problem is not this assert, but that `and` is annotated as `TT_PointerOrReference` this has to be fixed.

The alternatively spelled operators are always `TT_BinaryOperator` rsp. `TT_UnaryOperator`.

Do you want to take a look at that? Otherwise just close this PR and I will fix it.

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


More information about the cfe-commits mailing list