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

Improve tooltip when function signature does not match caller

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 6.0.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • All

      The normal tooltip on a function call shows the function parameters with their appropriate types (1):

      When during refactoring the signature changes (e.g. a new parameter was introduced), we get a Clang error, wich is good (2):

      The tooltip says that four parameters are required, but only three provided. However, it would be better to have the function signature at hand to know which type of parameter is missing and at which position it has to be inserted. Unfortunately the tooltip from (1) is not available until the call is fixed. So the only way to get the information is to jump back to the function declaration.

      It would be good to have a combination of the tooltips (1) and (2) to avoid jumping in the code.

        1. image-2021-10-12-09-27-28-183.png
          70 kB
          André Hartmann
        2. image-2021-10-12-09-29-06-195.png
          66 kB
          André Hartmann
        3. main.cpp
          0.6 kB
          André Hartmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes