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

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

XMLWordPrintable

      #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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes