[all-commits] [llvm/llvm-project] e7ae55: [clang-format] Fix mismatched break in BlockIndent...

Gedare Bloom via All-commits all-commits at lists.llvm.org
Fri Apr 25 16:40:17 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e7ae5532bc2797558b386cc9f16f9622e569dcbe
      https://github.com/llvm/llvm-project/commit/e7ae5532bc2797558b386cc9f16f9622e569dcbe
  Author: Gedare Bloom <gedare at rtems.org>
  Date:   2025-04-25 (Fri, 25 Apr 2025)

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

  Log Message:
  -----------
  [clang-format] Fix mismatched break in BlockIndent (#124998)

Near the ColumnLimit a break could be inserted before a right parens
with BlockIndent without a break after the matching left parens. Avoid
these hanging right parens by disallowing breaks before right parens
unless there was a break after the left parens.

Fixes #103306

(cherry picked from commit b8734797a3f605c4aaa37fcb5007baa273565460)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list