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

clang code model: "F1" help access does not work for methods with parameters that are implicitly converted

    XMLWordPrintable

Details

    • Windows

    Description

      When a method is called with a parameter that has a warning in the clang code model:

      "implicit conversion changes signedness"

      then the "F1" help access does not find any help: "No documentation available"

      e.g.

      QVector<SensorEvent> sensorEvents;
      unsigned int numEvents = 2;
      sensorEvents.resize(numEvents);
      

      Looks like this in QtCreator if you have the cursor on resize and press "F1":

      If the cursor is in sensorEvents then the help of QVector is openend by "F1".

      Btw.: There is only one method "resize" in QVector....

      What I'm wondering: if you can detect that there is a implicit conversion from foo to bar, wouldn't it be ok that help shows the documentation of "method(bar)"?

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              moellney Michael Möllney
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes