mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02: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:
parent
f0794cbd40
commit
78407b99ed
17 changed files with 39 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue