From d1b42d0771fd9bc36e48547b0979586050e939b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sun, 26 Nov 2023 14:42:11 +0100 Subject: [PATCH] fixed #12056 - qt.cfg: implemented `Q_OBJECT` to get rid of `symbolDatabaseWarning` in selfcheck (#5533) --- .selfcheck_suppressions | 4 +--- .selfcheck_unused_suppressions | 5 ++++- cfg/qt.cfg | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.selfcheck_suppressions b/.selfcheck_suppressions index cbfadadbe02..872a521be37 100644 --- a/.selfcheck_suppressions +++ b/.selfcheck_suppressions @@ -4,14 +4,12 @@ bitwiseOnBoolean # temporary suppressions - fix the warnings! simplifyUsing:lib/valueptr.h +simplifyUsing:gui/temp/moc_*.cpp varid0:gui/projectfile.cpp templateInstantiation # warnings in Qt generated code we cannot fix -symbolDatabaseWarning:gui/temp/moc_*.cpp -simplifyUsing:gui/temp/moc_*.cpp funcArgNamesDifferent:gui/temp/moc_*.cpp -symbolDatabaseWarning:tools/triage/temp/moc_*.cpp naming-varname:gui/temp/ui_*.h naming-varname:cmake.output/gui/ui_*.h functionStatic:gui/temp/ui_fileview.h diff --git a/.selfcheck_unused_suppressions b/.selfcheck_unused_suppressions index 8e470d2e415..68f296fef3d 100644 --- a/.selfcheck_unused_suppressions +++ b/.selfcheck_unused_suppressions @@ -9,4 +9,7 @@ unusedFunction:gui/codeeditor.* # usage is disabled unusedFunction:lib/symboldatabase.cpp # false positive - #10661 -unusedFunction:oss-fuzz/main.cpp \ No newline at end of file +unusedFunction:oss-fuzz/main.cpp + +# Q_OBJECT functions which are not called in our code +unusedFunction:cmake.output.notest/gui/cppcheck-gui_autogen/*/moc_aboutdialog.cpp \ No newline at end of file diff --git a/cfg/qt.cfg b/cfg/qt.cfg index e78a6653311..51033609767 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5081,7 +5081,7 @@ - +