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

[clangd] Find References shows deleted files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 6.0.0-rc1
    • Fix Version/s: Qt Creator 6.0.0
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      f4070c4b43da876a79faff2aeaa35f404caf4ff5 (qt-creator/qt-creator/6.0)

      Description

      clangd doesn't remove cached data for files deleted while it was disabled.

      Steps to reproduce:

      1. Enable clangd in options
      2. Create new project with main.cpp and OtherClass.h, or clone https://github.com/VolodymyrZibarov/clangdRenameBug.git and open it
      3. Find References in OtherClass.h for member "value". It shows 2 files: main.cpp and OtherClass.h, as expected.
      4. Disable CLangd in options
      5. Rename file OtherClass.h to OtherClass2.h, class name remains unchanged.
      6. Enable CLangd in options
      7. Find References in OtherClass2.h for member "value".

      Expected result:

      2 files in results list

      Actual result:

      3 files in results list, including OtherClass.h, that was renamed:

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            volodymyr_zibarov Volodymr Zibarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes