[all-commits] [llvm/llvm-project] 92d873: [clang-format] Fix a bug in merging blocks with a ...

Owen via All-commits all-commits at lists.llvm.org
Fri Sep 2 23:05:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92d8738c38448a478e0c5b097b24b450a224843f
      https://github.com/llvm/llvm-project/commit/92d8738c38448a478e0c5b097b24b450a224843f
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-09-02 (Fri, 02 Sep 2022)

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

  Log Message:
  -----------
  [clang-format] Fix a bug in merging blocks with a wrapped l_brace

When the opening brace of a control statement block is wrapped, we
must check the previous line to determine whether to try to merge
the block.

Fixes #38639.
Fixes #48007.
Fixes #57421.

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




More information about the All-commits mailing list