Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-7110

Have the sanity bot complain when using module-wide includes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Sanity Bot
    • None
    • 5e1a17873 (dev)

    Description

      It's never OK to use module-wide includes (e.g. #include <QtCore>), so Qt should never do that. This includes examples and autotests. The bot should flag any code that adds such an include.

      The biggest offender is #include <QtTest> when one likelywanted to type #include <QTest>, accidentally including all of QtCore as a dependency.

      When QtTest was purged out of qtbase, testcases build time was reduced by 25%, so that's absolutely significant. But I see that it got added (back?).

      Attachments

        For Gerrit Dashboard: QTQAINFRA-7110
        # Subject Branch Project Status CR V

        Activity

          People

            gerrit-admin Gerrit Admin
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change