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

Refactor -> Add definition in 'file.cpp' gives wrong result with r-value (rvalue) reference.

    XMLWordPrintable

Details

    • a1c18d9e971069d8e12c7becf1cf8794c9e18cc2

    Description

      src.h:

      struct Foo
      {
          Foo( Foo&& );
      }
      

      Refactor -> Add definition in 'file.cpp' gives:

      Foo::Foo(Foo&)
      {
      	
      }
      

      First, rvalue reference become lvalue.
      Second, coding format is broken, it should keep all spaces in their original places:

      Foo::Foo( Foo&& )
      {
      	
      }
      

      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
              shiftz Andrew Shevchenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes