Skip to content

Commit

Permalink
Qt: Add a couple of Clang-Tidy suppressions
Browse files Browse the repository at this point in the history
The Wireshark and Stratoshark external menu helpers have a maximum
depth, so add Clang-Tidy recursion suppressions to match.
  • Loading branch information
geraldcombs committed Feb 7, 2025
1 parent dbbde25 commit 4898852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/qt/wireshark_main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2836,6 +2836,7 @@ void WiresharkMainWindow::reloadDynamicMenus()
mainApp->clearRemovedMenuGroupItems();
}

// NOLINTNEXTLINE(misc-no-recursion)
void WiresharkMainWindow::externalMenuHelper(ext_menu_t * menu, QMenu * subMenu, int depth)
{
QAction * itemAction = Q_NULLPTR;
Expand Down
1 change: 1 addition & 0 deletions ui/stratoshark/stratoshark_main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,7 @@ void StratosharkMainWindow::reloadDynamicMenus()
mainApp->clearRemovedMenuGroupItems();
}

// NOLINTNEXTLINE(misc-no-recursion)
void StratosharkMainWindow::externalMenuHelper(ext_menu_t * menu, QMenu * subMenu, int depth)
{
QAction * itemAction = Q_NULLPTR;
Expand Down

0 comments on commit 4898852

Please sign in to comment.