Skip to content

Commit 3cb4d9a

Browse files
committed
use inline suppression for symboldatabase.cpp
1 parent b24df13 commit 3cb4d9a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.selfcheck_unused_suppressions

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ checkersReport
44
# we are not using all methods of their interfaces
55
unusedFunction:externals/*/*
66

7-
# usage is disabled
8-
unusedFunction:lib/symboldatabase.cpp
9-
107
# Q_OBJECT functions which are not called in our code
118
unusedFunction:cmake.output.notest/gui/cppcheck-gui_autogen/*/moc_aboutdialog.cpp

lib/symboldatabase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6404,6 +6404,7 @@ const Function* SymbolDatabase::findFunction(const Token* const tok) const
64046404

64056405
//---------------------------------------------------------------------------
64066406

6407+
// cppcheck-suppress unusedFunction
64076408
const Scope *SymbolDatabase::findScopeByName(const std::string& name) const
64086409
{
64096410
auto it = std::find_if(scopeList.cbegin(), scopeList.cend(), [&](const Scope& s) {

0 commit comments

Comments
 (0)