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

Refactor option to generate friend function

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • C/C++/Obj-C++ Support
    • None

    Description

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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes