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

Reduce possibility for collisions in moc generated files.

    XMLWordPrintable

Details

    Description

      If two headers in different sub-folders both have the same filename and invoke the Q_OBJECT macro, reduce the possibility of conflicts in the generated files.

      Consider the following files:

      slider/view.hpp
      button/view.hpp

      If they both invoke Q_OBJECT macro, the resulting makefile will attempt to generate moc_view.cpp for each.

      A possible solution is to detect such a conflict, and find the minimal difference in path and add a sentry for conflict mode. So the above would generate:

      mocc_slider_view.cpp
      mocc_button_view.cpp

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            sankeld David Sankel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes