Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22651

[REG] No completion for QCOMPARE and QVERIFY in auto test project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.10.0-beta2
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 18.04 x64
    • Linux/X11

      • Create a new Auto Test project, keeping all defaults
      • Build and run the project, the editor should now be code model warning free
      • Try to add QCOMPARE or QVERIFY in a test case, there is no completion offered

      After the first QCOMPARE or QVERIFY is in the project, adding furthers triggers the completion

      I just noticed, that in the simple test case the completion never triggers. So it looks like a regression to me.

      Note that this is the official beta2 release with Clang Code Model active.

      It seems to work if I include <qtestcase.h> direcly. However, including <QtTest> (which also includes <qtestcase.h>) is not enough.

        1. screenshot-1.png
          173 kB
          André Hartmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            aha_1980 André Hartmann
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes