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

[clangd] Find References shows deleted files

    XMLWordPrintable

Details

    • Linux/X11
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: