qtdeclarative/tools
Marc Mutz a5377f32e1 qmltc: fix GCC13 warnings "class X is implicitly friend with itself"
This happens because the generated code contains

    class X {
        ~~~~
    private:
        friend class X; // warning here
    };

Says GCC13 (e.g.):

    tests/auto/qml/qmltc/QmltcTests/.qmltc/qmltc_test_module/inlinecomponents.h:421:18: warning: class ‘QmltcTests::inlineComponents_IC0’ is implicitly friends with itself
      421 |     friend class inlineComponents_IC0;
          |                  ^~~~~~~~~~~~~~~~~~~~

It seems the intended check for documentRoot doesn't work in all
cases, so do the check on the class-name level.

There appears to be no -W flag to control this warning, therefore no
apparent way to suppress it, so we need to fix it.

Amends either b89a92053e or
0990b892ca. I didn't dig into it
further.

Pick-to: 6.6 6.5
Change-Id: I3fe653a398ea5b7a3e045fd3ea8dfb5d5c0f2e5c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-08-02 16:00:47 +02:00
..
qml qml tool: Use QCommandLineParser::process() rather than parse() 2023-05-16 11:48:14 +02:00
qmlcachegen
qmldom
qmleasing
qmlformat
qmlimportscanner
qmljs qmljs: Port to QCommandLineParser 2023-06-30 10:47:17 +02:00
qmljsrootgen qmljsrootgen: port to QCommandLineParser 2023-07-05 09:14:20 +02:00
qmllint QQmlSA: Create an abstraction layer for static analysis 2023-05-30 13:42:35 +02:00
qmlls qmlls: fix the order in which the build directory is obtained 2023-06-23 09:03:27 +02:00
qmlplugindump Improve string handling in qmltyperegistrar 2023-06-30 10:47:17 +02:00
qmlpreview
qmlprofiler
qmlscene
qmltc qmltc: fix GCC13 warnings "class X is implicitly friend with itself" 2023-08-02 16:00:47 +02:00
qmltestrunner
qmltime
qmltyperegistrar qmltyperegistrar: Improve the file open error message 2023-05-17 15:12:21 +02:00
CMakeLists.txt qmlls: fix the order in which the build directory is obtained 2023-06-23 09:03:27 +02:00