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

[clangd] Follow symbol for destructor jumps to class name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 6.0.1, Qt Creator 7.0.0-beta1
    • Fix Version/s: Qt Creator 7.0.0-beta1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      abe09bfd76 (qt-creator/qt-creator/7.0) abe09bfd76 (qt-creator/qt-creator/master)

      Description

      Steps to reproduce:

      1. Enable Clangd
      2. Have a class with destructor declared in header and it's definition in cpp file
      3. Position cursor on destructor declaration
      4. Press F2 for "Follow symbol under cursor"

      Expected result:

      • it jumps to destructor definition in cpp file

      Actual result:

      • it jumps to class name in class declaration "class SomeName"

      Additional info: Works OK for constructors. "Find references" for destructor also doesn't work - it finds all instances of class name, as if I was calling "Find references" for name of a class in it's declaration.

        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