Skip to content

Commit

Permalink
#verification #docs #sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 8, 2024
1 parent 265ef02 commit 27b44b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/libcyphal/transport/can/delegate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ class TransportDelegate
/// Recursion goes first to the left child, then to the current node, and finally to the right child.
/// B/c AVL tree is balanced, the total complexity is `O(n)` and call stack depth should not be deeper than
/// ~O(log(N)) (`ceil(1.44 * log2(N + 2) - 0.328)` to be precise, or 19 in case of 8192 ports),
/// where `N` is the total number of tree nodes. Hence, the `NOLINT(misc-no-recursion)` exception.
/// where `N` is the total number of tree nodes. Hence, the `NOLINTNEXTLINE(misc-no-recursion)` exception.
///
/// @tparam Visitor Type of the visitor callable.
/// @param node (sub-)root node of the AVL tree. Could be `nullptr`.
/// @param visitor The callable to be invoked for each non-null node.
/// @return Total count of visited nodes (including the `node` one). `0` if `node` is `nullptr`.
///
template <typename Visitor>
static std::size_t visitCounting(CanardTreeNode* const node,
const Visitor& visitor) // NOLINT(misc-no-recursion)
// NOLINTNEXTLINE(misc-no-recursion)
static std::size_t visitCounting(CanardTreeNode* const node, const Visitor& visitor)
{
if (node == nullptr)
{
Expand Down

0 comments on commit 27b44b0

Please sign in to comment.