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

"Follow symbol under cursor" sometimes follows to the symbol usage instead of definition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 5.0.0
    • C/C++/Obj-C++ Support
    • Kubuntu 21.04
    • Linux/X11

    Description

      I have a fairly large CMake-based project that uses Boost and quite a few other libraries. Sometimes, when I follow a symbol under cursor (a function call), QtCreator switches to a random other place in the code base (in a different module altogether) where that symbol is used. If I follow the symbol from there, then I might get to the symbol definition.

      For example, if I have the cursor at a `boost::intrusive::list<>::splice()` function call and press Ctrl+F12 to follow to its definition, QtCreator actually follows to an unrelated place where the same function (of a different specialization of `boost::intrusive::list<>`) is called. If I press Ctrl+F12 on that call, I then get to the function definition.

      This does not happen specifically with Boost functions, it can happen with any same-named functions, even from completely different classes.

      My project is not open source, and I can't publish it. I'm also unable to create a small project that reproduces the issue.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes