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

Refactor->"Add Definition" not working with empty cpp file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 2.2.1
    • C/C++/Obj-C++ Support
    • None

      In the "Refactor" context menu entry, "Add Definition in xxx.cpp" does not even show up if the corresponding cpp file has no method definitions at all.

      Steps to repeat:
      1) Create a new class
      2) Add a method declaration in the public section
      3) Check the Refactor menu entry --> OK
      4) Delete the empty constructor implementation in the cpp file and save
      5) Check the Refactor menu entry --> ENTRY MISSING

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

            leamelo Leandro T. C. Melo
            asperamanca Robert Schimkowitsch
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes