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

Parameter hint popup incorrectly shows implicitly-deleted copy constructor.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes