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

Funny lines with "QTC_TEMP" when generating function implementations

    XMLWordPrintable

Details

    • f40c18784 (master)

    Description

      Add the following class stub somewhere in a project

      class A
      {
      public:
          void foo();
          void bar();
      };
      

      Then click on "foo()" and trigger the refactoring "Add Definition Outside Class". This generates a function body.

      Then click on "bar()" and trigger the same refactoring.

      The result is

      void A::foo() {}
      // QTC_TEMP
      void A::bar()
      {
          
      }
      

      Expected: No "// QTC_TEMP" should be added to the code.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes