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

AUTOMOC warns about missing relevant classes after syncqt.cpp migration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5.0
    • 6.5
    • Build System: CMake
    • None
    • 3cd19719e (dev)

      Some platform-specific header files migrated to the common section of Qt modules. These files have internal guards for their content, so AUTOMOC doesn't find any relevant content in there and prints a warning at compile time as following:

      AutoMoc: .../src/corelib/kernel/qwineventnotifier.h:0:1: note: No relevant classes found. No output generated.
      

      The solution could be in keeping these header files in platform/feature specific sections, still adding them to a CMake source tree according to public header filter, but disabling AUTOGEN if platform/feature condition is not met.

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

            jbornema Joerg Bornemann
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes