[all-commits] [llvm/llvm-project] d96bf6: Revert "[clang-format] Adjust braced list detection"

Krasimir Georgiev via All-commits all-commits at lists.llvm.org
Sun Dec 19 07:05:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d96bf6ea461810f7def54541dbcb7ceaecd2d065
      https://github.com/llvm/llvm-project/commit/d96bf6ea461810f7def54541dbcb7ceaecd2d065
  Author: Krasimir Georgiev <krasimir at google.com>
  Date:   2021-12-19 (Sun, 19 Dec 2021)

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

  Log Message:
  -----------
  Revert "[clang-format] Adjust braced list detection"

It appears that this regressed the formatting of initializer lists in some
cases, see comments on https://reviews.llvm.org/D114583. I'll follow-up
by adding regression tests for these.

This reverts commit c41b3b0fa0f4f70aad8deaf48bcd42a04385066c.

Reviewed By: MyDeveloperDay

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




More information about the All-commits mailing list