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

Clang: No completion for QObject::connect() due to crash

    XMLWordPrintable

Details

    Description

      #include <QObject>
      
      class Foo : public QObject
      {
          Q_OBJECT
      public:
          Foo() {
              QObject::connect(0, 0, 0, 0); // Put cursor after '(' and trigger completion
          }
      };
      
      int main(int, char *[])
      {
      }
      

      Qt Creator generates this output:

      clangbackend.stderr: libclang: crash detected in code completion
      

      Qt Creator seems to be fully usable afterwards. The clangbackend also does not crash.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            kosjar Nikolai Kosjar
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes