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

CLONE - Function header const order is changed when using Refactor / Add Definition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 3.0.1
    • C/C++/Obj-C++ Support
    • None

    Description

      Hi, I'm replicating this report because the behaviour persists with 3.0.1 release.

      When using Refactor / Add Definition menu, const keyword ends always before the type name, so, a method declared in the header file as:

      void myMethod(QString const s);
      

      will become:

      void MyClass::myMethod(const QString s)
      {
      }
      

      in the implementation file. I think that following the coding style found in the header would result in a better experience.

      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
              albert76 Albert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes