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

Jump to symbol jumps to wrong source/header file if file name is identical

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 18.0.0-beta1
    • None

      The attached project contains multiple header/source files that have exact same name and similar content(class declaration/definition). If I used "jump-to-symbol" functionality (Ctrl+Mouse1) I always jump to the top-level symbol-declaration/definition, see the attached video Screencast_20250916_122920.webm . It's expected that for the project configuration as the attached project Archive.tar.gz , QtC will consider the target include paths and jump to the respective implementation correctly.

      Note: The test project is malformed from the build perspective, since it will produce multiple symbol duplication. But I would expect that the issue is applicable for different more realistic scenarios too.

        1. Screencast_20250916_122920.webm
          1.05 MB
          Alexey Edelev
        2. Archive.tar.gz
          0.9 kB
          Alexey Edelev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes