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

Possible CLANG issue in Creator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.7.2
    • C/C++/Obj-C++ Support
    • None
    • Desktop Ubuntu 16.04
      Qt 5.7 compiled with MySQL support
    • Linux/X11

    Description

      Fairly frequent intermittent issue

      Repro case

      1. Start a new project (in my case a gui app)
      2. Create a new class (in my case, Verifier) that inherits QObject
      3. Add theĀ Q_DECLARE_METATYPE(Verifier) after the class declaration in the header file.
      4. Switch to the main.cpp source file.
      5. #include "verifier.h"
      6. In the main function, add qRegisterMetaType<Verifier>("Verifier");

      Expected result:

      The CLANG model shows no errors and the application compiles.

      Actual result:

      The CLANG model shows an error and the message is something like "expected ;" The application compiles, but the error still shows in the editor. To get rid of it, restart Creator.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            jbarnesweb Jeff Barnes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes