[clang-format] use spaces for alignment of binary/ternary expressions with UT_AlignWi...
authorMaximilian Fickert <maximilian.fickert@gmail.com>
Tue, 11 Aug 2020 12:54:46 +0000 (14:54 +0200)
committerMarek Kurdej <marek@quasardb.net>
Tue, 11 Aug 2020 12:56:26 +0000 (14:56 +0200)
commitb18c63e85aa8191e583cd1014757904c344b45d7
tree316263aba285e2e644f86631c9fb439be2f019cd
parent950f1bf976b332eca60267b25bf759e2ad564e0c
[clang-format] use spaces for alignment of binary/ternary expressions with UT_AlignWithSpaces

Use spaces to align binary and ternary expressions when using AlignOperands and UT_AlignWithSpaces.

This fixes an oversight in the new UT_AlignWithSpaces option (see D75034), which did not correctly identify the alignment of binary/ternary expressions.

Reviewed By: curdeius

Patch by: fickert

Differential Revision: https://reviews.llvm.org/D85600
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTest.cpp