[all-commits] [llvm/llvm-project] 7cb0bc: [clang-format] Handle more cases for RemoveBracesLLVM

Owen via All-commits all-commits at lists.llvm.org
Mon Jun 13 12:10:50 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cb0bc8abf6efd7e25b0091a7306de23c3a0f314
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

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

  Log Message:
  [clang-format] Handle more cases for RemoveBracesLLVM

Call mightFitOneOneline() on the line before the closing brace only
if it is at the level of the block.

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

More information about the All-commits mailing list