In some cases, running clang-format has made code less readable by joining declarations and calls for functions with many arguments into very long lines. For example:
0- size_t getQueueInfo(std::chrono::system_clock::time_point &first,
1- std::chrono::system_clock::time_point &last) const;
2+ size_t getQueueInfo(std::chrono::system_clock::time_point& first, std::chrono::system_clock::time_point& last) const;
(https://github.com/bitcoin/bitcoin/pull/19090#discussion_r431961148)
This change to clang-format would allow arguments/parameters for func declarations/calls to be split over multiple lines, aligned with the opening parens. It does not force args/params to be on new lines (that setting is BinPackParameters : true
).