[clang-format] Add penalty for breaking after '('
authorG. Pery <gpery@pm.me>
Mon, 3 Jan 2022 19:55:13 +0000 (20:55 +0100)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Mon, 3 Jan 2022 20:06:34 +0000 (21:06 +0100)
commitcfe3180742adfc72ad6f5de55cbfc84befb90c97
tree12bfbec084b7f8e0e8119c7e83494bf208dfc269
parent7203140748cec7185479cc413ea68f34d2eced99
[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
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp