[clang] [clang-format] Set Context.IsExpression for C++ ternary operators (PR #206300)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 28 09:55:20 PDT 2026


owenca wrote:

> I still think `and` should just be what it says.

We don't need to special case `and`, an alternative spelling of `tok::ampamp` when determining if it's the binary operator. Annotating the token correctly takes care of both `&&` and `and`.



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


More information about the cfe-commits mailing list