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

"create implementation of member functions" ignores defaulted dtor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 5.0.0-beta1
    • C/C++/Obj-C++ Support

    Description

      there's a small bug in the lovely "create implementation of member functions" feature where defaulted destructors won't be interpreted as implemented.

      consider this code:

      foo.h:

      class foo
      {
         ~foo();
      };
      

      the function "create implementation of member functions" will suggest to create a member function if the function, if the dtor defaulted:

      foo.cpp:

      foo::~foo() = default;
      

      however when the dtor is implemented, it does not suggest to create the member function (which is the expected behaviour):

      foo.cpp:

      foo::~foo()
      {}
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes