Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .selfcheck_suppressions
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@ missingIncludeSystem
# should not be reported - see #13387
checkersReport

# temporary suppressions - fix the warnings!
simplifyUsing:lib/valueptr.h
naming-privateMemberVariable:gui/test/cppchecklibrarydata/testcppchecklibrarydata.h
bitwiseOnBoolean:lib/library.cpp
templateInstantiation:lib/checkunusedfunctions.cpp
templateInstantiation:lib/errorlogger.cpp
templateInstantiation:lib/liobrary.cpp
shadowFunction:lib/checkbufferoverrun.cpp
shadowFunction:lib/checkclass.cpp
shadowFunction:lib/checknullpointer.cpp
shadowFunction:lib/cppcheck.cpp
shadowFunction:lib/fwdanalysis.cpp
shadowFunction:lib/library.cpp
shadowFunction:lib/symboldatabase.cpp
shadowFunction:lib/templatesimplifier.cpp
shadowFunction:lib/token.cpp
shadowFunction:tools/triage/mainwindow.cpp

# warnings in Qt generated code we cannot fix
funcArgNamesDifferent:*/moc_checkthread.cpp
funcArgNamesDifferent:*/moc_codeeditstylecontrols.cpp
Expand Down
4 changes: 4 additions & 0 deletions gui/test/cppchecklibrarydata/testcppchecklibrarydata.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ private slots:
static void loadCfgFile(const QString &filename, CppcheckLibraryData &data, QString &res, bool removeFile = false);
static void saveCfgFile(const QString &filename, CppcheckLibraryData &data);

// cppcheck-suppress naming-privateMemberVariable - TODO: fix this
CppcheckLibraryData libraryData;
// cppcheck-suppress naming-privateMemberVariable - TODO: fix this
CppcheckLibraryData fileLibraryData;
// cppcheck-suppress naming-privateMemberVariable - TODO: fix this
QString result;

// cppcheck-suppress naming-privateMemberVariable - TODO: fix this
static const QString TempCfgFile;
};
1 change: 1 addition & 0 deletions lib/valueptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class CPPCHECKLIB ValuePtr {
public:
using pointer = T*;
using element_type = T;
// cppcheck-suppress simplifyUsing - TODO: fix this
using cloner_type = decltype(&cloner<T>::apply);

ValuePtr() : mPtr(nullptr), mClone() {}
Expand Down