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

Extract Function ignores namespace in cxx file

    XMLWordPrintable

Details

    • Windows
    • c8d7c074f56922153923356581fcbd6d15f79110 (qt-creator/qt-creator/master)

    Description

      When using the Extract Function refactoring tool in C++ code, the namespace is ignored for the implementation in the cxx file.

       

      Eg I'm extracting from Analytics::Calculation::doStuff() a fooBar() method it will be void Calculation::fooBar() instead of void Analytics::Calculation::fooBar()

       

      The header.h looks like this

      namespace Analytics {
          class Calculation : public QObject {         
              void doStuff();     
          }
      };
      

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              alfu alfu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes