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

"Follow Symbol Under Cursor" and "Switch Between Method Decl/Def" jumps incorrectly when ambiguous classes defined.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.5.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Linux

    Description

      I have multiple projects loaded in the same Qt Creator session. Two of those projects have C++ classes with the same class names and file names. Both are concrete implementations of a common virtual base class.

      My simplified session looks like:

      Project1
          myclass.h
          myclass.cpp
      Project2
          myclass.h
          myclass.cpp
      

      Pressing F2 or Shift+F2 to switch between the function declaration and definitions work in all instances except for Project2/myclass.h. Instead of jumping to Project2/myclass.cpp Qt Creator jumps to the function in Project1/myclass.cpp.

      Attachments

        Issue Links

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

          Activity

            People

              leamelo Leandro T. C. Melo
              amccarth Aaron McCarthy (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes