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

Parameter hint popup incorrectly shows implicitly-deleted copy constructor.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 4.6.0-beta1
    • Qt Creator 4.4.0-rc1
    • C/C++/Obj-C++ Support
    • Qt Creator 4.4.0-rc1 (4.3.83)

      Based on Qt 5.9.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)

      Built on Aug 16 2017 05:20:29

      From revision cdffb378fd

      When starting to type the argument list following a constructor, QT Creator shows implicitly-deleted copy constructor in list of overloads.

       

      class StartPingAction
      {
          QString                         _hostname;
          quint16                         _port;
          int                             _intervalMsecs;
          int                             _pingTimeoutMsecs;
          std::unique_ptr<QTimer>         _timer;
          std::unique_ptr<TcpPortTester>  _pinger;
          ILog                            *_log;
      
      public:
          StartPingAction() = default;
          StartPingAction(QString hostname,
                          quint16 port,
                          int     intervalMsecs,
                          int     pingTimeoutMsecs,
                          ILog    *log);
      }
      

      Trying to use the StartPingAction(const StartPingAction&) constructor fails to compiler and Creator correctly shows the error annotation, but the copy constructor still shows up in the yellow parameter hint popup.

        For Gerrit Dashboard: QTCREATORBUG-18824
        # Subject Branch Project Status CR V

            yvvan Ivan Donchevskii
            nwinterer Nick Winterer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes