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

Annoyance with "Apply function signature changes"

    XMLWordPrintable

Details

    • 3b14051db50f65f0e6c1319adad2224bfa6e3871 (qt-creator/qt-creator/master)

    Description

      Sometimes I have code that does not build since the type of the arguments given to a function is not fully specified.

      Example:

      void doSomething(Kit *k);

      The code model is happy with this code and deduces somehow that I am referring to ProjectExplorer::Kit, but the compiler fails to get there.

      So I add "ProjectExplorer::" in front of Kit. While typing I have a lightbulb after the function name and can trigger "Apply function signature changes", but when I am done typing that option is no longer available. I guess the code model thinks there is no change wrt. the type and disables the quick fix.

      This is really annoying since I have to go to the function definition and repeat the change to make my compiler happy.

      Could you please keep the quick fix enabled when the type is the same, but the "qualification" has changed?

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hunger Tobias Hunger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes