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

Refactor option to generate friend function

XMLWordPrintable

      For example:

      class Foo {
       friend void bar(Foo*);
      };
      

      Currently there is no refactor option to generate void bar(Foo*), probably because it is not a member. However, that function would probably exist somewhere close by anyway so maybe it could offer an option to generate free function declaration and definition to the .cpp file.

      For example it could end up as:

      class Foo {
       friend void bar(Foo*);
      };
      void bar(Foo*);
      

      in .cpp:

      void bar(Foo*)
      {}
      

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

            kandeler Christian Kandeler
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes