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

Improve tooltip when function signature does not match caller

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes