From d86a773808d8e1f52fa04c240dff3d8e02d7f6f3 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Sun, 10 Dec 2023 12:22:09 +0100 Subject: [PATCH] Workaround clazy warnings in qtestcase.h This is fixed upstream in Qt 6.3+ so for now we just disable the check in the test file where we run into it for Qt versions lower than 6.3. --- tests/integrationtests/tst_perfparser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integrationtests/tst_perfparser.cpp b/tests/integrationtests/tst_perfparser.cpp index fba4d52f..17a79bc9 100644 --- a/tests/integrationtests/tst_perfparser.cpp +++ b/tests/integrationtests/tst_perfparser.cpp @@ -24,6 +24,12 @@ #include "../testutils.h" #include +#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0) +// workaround issues with string literals in QTest that we cannot workaround locally +// this was fixed upstream, see: https://codereview.qt-project.org/c/qt/qtbase/+/354227 +// clazy:excludeall=qstring-allocations +#endif + namespace { template bool searchForChildSymbol(const T& root, const QString& searchString, bool exact = true)