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

"create implementation of member functions" ignores defaulted dtor

XMLWordPrintable

    • 4c3b55662 (master)

      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()
      {}
      

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

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes