From 49a34cdef7a5310364edc105513d43d33d931f59 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:18:56 +0100 Subject: [PATCH] Fix #10689 Several Qt containers are missing from qt.cfg (#6146) --- cfg/qt.cfg | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ cfg/std.cfg | 1 - test/cfg/qt.cpp | 21 ++++++++++++++++++++- 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 17895b64f31..bcc24ae4b1b 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5160,6 +5160,22 @@ + + + + + + + + + + + + + + + + @@ -5183,6 +5199,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QApplication diff --git a/cfg/std.cfg b/cfg/std.cfg index 6383963b616..11ae259ed6c 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -8782,7 +8782,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init - diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index c09d037ee3a..1c4556051a9 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -14,9 +14,12 @@ #include #include #include +#include +#include +#include +#include #include #include -#include #include #include #include @@ -27,6 +30,8 @@ #include #include +#include + void unreadVariable_QPoint(const QPoint &s) { // cppcheck-suppress unreadVariable @@ -713,3 +718,17 @@ bool knownConditionTrueFalse_QString_count(const QString& s) // #11036 return false; return true; } + +void unusedVariable_qtContainers() // #10689 +{ + // cppcheck-suppress unusedVariable + QMap qm; + // cppcheck-suppress unusedVariable + QSet qs; + // cppcheck-suppress unusedVariable + QMultiMap qmm; + // cppcheck-suppress unusedVariable + QQueue qq; + // cppcheck-suppress unusedVariable + QLatin1String ql1s; +} \ No newline at end of file