Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76805

qdoc fails for many modules due to qtimer.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.13.0
    • Build tools: qdoc
    • None
    • Windows

    Description

      I tried to build Qt's documentation from scratch in WebXML for Qt 5.13.0 (downloaded from the Web installer). However, many modules fail due to an error in qtimer.h:

      src/corelib/kernel/qtimer.h:104:29: error: class member cannot be redeclared

      This refers to implementations of callOnTimeout (the three ones hidden by Q_CLANG_QDOC). The same issue is also present in https://bugreports.qt.io/browse/QTBUG-74603 (actually, it's the only other mention I got for this specific error from Google).

      I tried with both the precompiled qdoc (the MinGW 64 package) and with a qdoc I compiled myself (with Clang 8.0.0), both gave the same error. However, it should be possible to make it work, as the official documentation has all three implementation of callOnTimeout (https://doc.qt.io/qt-5/qtimer.html#callOnTimeout).

      If I delete the third declaration of callOnTimeout, qdoc works properly; if this declaration is present, nothing gets generated for many modules (like Qt 3D).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gbk Martin Smith (Qt)
            dourouc05_ Thibaut Cuvelier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes