[all-commits] [llvm/llvm-project] 05d771: [clang-format] Fix a bug in RemoveBracesLLVM

Owen via All-commits all-commits at lists.llvm.org
Sat Jun 11 01:12:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05d771021ad9de12f3e657d464d18731a13578ab
      https://github.com/llvm/llvm-project/commit/05d771021ad9de12f3e657d464d18731a13578ab
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-06-11 (Sat, 11 Jun 2022)

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

  Log Message:
  -----------
  [clang-format] Fix a bug in RemoveBracesLLVM

Remove the braces of an else block only if the r_brace of the block
is followed by an if.

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




More information about the All-commits mailing list