[clang-format] Add option for having one port per line in Verilog
authorsstwcw <f0gukp2nk@protonmail.com>
Tue, 4 Apr 2023 14:42:21 +0000 (14:42 +0000)
committersstwcw <f0gukp2nk@protonmail.com>
Tue, 4 Apr 2023 14:51:22 +0000 (14:51 +0000)
commit74cc4389f37d753bf07f1b4a4a4c5e09433d9231
treef89bd5ea1a24a66ba36f11d493a7ba368e111ead
parente7c454630732c6095406630243cf4f9485ea1ecb
[clang-format] Add option for having one port per line in Verilog

We added the option `VerilogBreakBetweenInstancePorts` to put ports on
separate lines in module instantiations.  We made it default to true
because style guides mostly recommend it that way for example:

https://github.com/lowRISC/style-guides/blob/master/VerilogCodingStyle.md#module-instantiation

Reviewed By: HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D147327
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/ConfigParseTest.cpp
clang/unittests/Format/FormatTestVerilog.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp