[all-commits] [llvm/llvm-project] 8b626a: [clang-format] Fix another bug in AlignConsecutive...

Owen via All-commits all-commits at lists.llvm.org
Thu May 5 14:49:13 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b626a2caa672a174829105ff7749d8d9a080f2a
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

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

  Log Message:
  [clang-format] Fix another bug in AlignConsecutiveAssignments

The ShouldShiftBeAdded lambda checks if extra space should be
added before the wrapped part of a braced list. If the first
element of the list is wrapped, no extra space should be added.

Fixes #55161.

Differential Revision: https://reviews.llvm.org/D124956

More information about the All-commits mailing list