[all-commits] [llvm/llvm-project] 37e754: [clang-format] Insert closing braces after an unaf...

Owen via All-commits all-commits at lists.llvm.org
Mon Oct 24 20:00:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37e754e5801c5de2e84ca2d7d40a48c780787f01
      https://github.com/llvm/llvm-project/commit/37e754e5801c5de2e84ca2d7d40a48c780787f01
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M clang/lib/Format/Format.cpp

  Log Message:
  -----------
  [clang-format] Insert closing braces after an unaffected line

The token that records the number of closing braces to be inserted
may be on an unaffected line. Extra work is required in order to
actually insert the closing braces after inserting the matching
opening braces of affected lines.

Fixes #58161.

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




More information about the All-commits mailing list