[all-commits] [llvm/llvm-project] 8ea64d: [clang-format] Fix short enums getting wrapped eve...

Gabriel Smith via All-commits all-commits at lists.llvm.org
Fri Dec 24 11:48:39 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ea64d5585ec3a0a52db20c9e57ac9bed9e80fc2
      https://github.com/llvm/llvm-project/commit/8ea64d5585ec3a0a52db20c9e57ac9bed9e80fc2
  Author: Gabriel Smith <ga29smith at gmail.com>
  Date:   2021-12-24 (Fri, 24 Dec 2021)

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

  Log Message:
  -----------
  [clang-format] Fix short enums getting wrapped even when denied

Single-variant enums were still getting placed on a single line
even when AllowShortEnumsOnASingleLine was false. This fixes that
by checking that setting when looking to merge lines.

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




More information about the All-commits mailing list