[all-commits] [llvm/llvm-project] b18c63: [clang-format] use spaces for alignment of binary/...

fickert via All-commits all-commits at lists.llvm.org
Tue Aug 11 05:57:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b18c63e85aa8191e583cd1014757904c344b45d7
      https://github.com/llvm/llvm-project/commit/b18c63e85aa8191e583cd1014757904c344b45d7
  Author: Maximilian Fickert <maximilian.fickert at gmail.com>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list