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

clang code model: Highlighting of occurrence of variable not working correctly

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When calling a method of an instance with wrong parameter type, the instance is not highlighted together with other occurrences of this instance in the scope.

      In line 27 the reference to a wrong type lets the Clang Code Model give up in detecting, that that the instance db is actually the db used in the scope: the highlighting is missing that you can see e.g. in line 29.

      Refactoring the name of db (e.g. to database) in the screenshot situation also neglects the occurrence of db in line 27. However it is detected, that db in line 27 is not a known type anymore: use of undeclared identifier.

      If you put your cursor on db in line 27, the other db occurrences are not highlighted.

      If your put line 26 in comment and use the line 25 for the correct type of num, everything works as expected.

       

       

       

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            moellney Michael Möllney
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes