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

Refactor AddDefinition ignores template arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 2.5.1
    • C/C++/Obj-C++ Support
    • None
    • OSX

    Description

      Create a class, foo, with a member function taking a templates parameter:

      class Foo {
      void Func(std::pair<int32_t, int32_t> size);
      };

      Right-click on Func and choose Refactor->Add Definition. This will create the implementation in the cpp file but will ignore the template arguments:

      void Foo::Func(std::pair size)
      {
      }

      This should be:

      void Foo::Func(std::pair<int32_t, int32_t> size)
      {
      }

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              danny77uk Daniel
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes