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

Follow Symbol has strange behavior with an overloaded function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 2.8.1, Qt Creator 3.0.0-rc1
    • Fix Version/s: Qt Creator 3.1.0-rc1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Commits:
      151899b1b8a046d9c3c31d229519a2f430f1e514

      Description

      struct Foo
      {
      protected:
          void foo(int); // 1
          void foo() {} // 2
      };
      
      void Foo::foo(int) {} // 3
      • F2 on [2] jumps to [1] (wrong)
      • F2 on [1] jumps to [3] (expected)
      • F2 on [3] jumps to [1] (expected)

      If the declaration is in the header and the definition in the cpp file, F2 (and even Shift-F2) on [1] jumps to [2].

        Attachments

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

          Activity

            People

            Assignee:
            orgads Orgad Shaneh
            Reporter:
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes