mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
[clang-tidy] Enable the misc-no-recursion check
Co-authored-by: stickies-v <stickies-v@protonmail.com> Co-authored-by: Gloria Zhao <gloriajzhao@gmail.com>
This commit is contained in:
@@ -65,6 +65,7 @@ void ReplaceAll(std::string& in_out, const std::string& search, const std::strin
|
||||
* @param unary_op Apply this operator to each item
|
||||
*/
|
||||
template <typename C, typename S, typename UnaryOp>
|
||||
// NOLINTNEXTLINE(misc-no-recursion)
|
||||
auto Join(const C& container, const S& separator, UnaryOp unary_op)
|
||||
{
|
||||
decltype(unary_op(*container.begin())) ret;
|
||||
|
||||
Reference in New Issue
Block a user