[all-commits] [llvm/llvm-project] cfe318: [clang-format] Add penalty for breaking after '('

GPery via All-commits all-commits at lists.llvm.org
Mon Jan 3 12:06:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfe3180742adfc72ad6f5de55cbfc84befb90c97
      https://github.com/llvm/llvm-project/commit/cfe3180742adfc72ad6f5de55cbfc84befb90c97
  Author: G. Pery <gpery at pm.me>
  Date:   2022-01-03 (Mon, 03 Jan 2022)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Add penalty for breaking after '('

My team has a vendetta against lines ending with an open parenthesis, thought it might be useful for others too 😊

Reviewed By: HazardyKnusperkeks, curdeius

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




More information about the All-commits mailing list