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

    • a1c18d9e971069d8e12c7becf1cf8794c9e18cc2

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

        For Gerrit Dashboard: QTCREATORBUG-10555
        # Subject Branch Project Status CR V

            kosjar Nikolai Kosjar
            shiftz Andrew Shevchenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes