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

Declaration/definition switching via Shift-F2 not working for methods of out-of-line-defined nested classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.1.0
    • Qt Creator 1.3.0 rc1
    • C/C++/Obj-C++ Support
    • None
    • Linux, Fedora 9.

    Description

      Given the following header a.h

      class A
      {
          class NestedInline
          {
              void method();
          };
      
          class NestedOutOfLine;
      };
      
      class A::NestedOutOfLine
      {
          void method();
      };
      

      and the corresponding source file a.cpp

      #include "a.h"
      
      void A::NestedInline::method()
      {
      }
      
      void A::NestedOutOfLine::method()
      {
      }
      

      the keyboard short-cut Shift-F2 will only switch between the declaration and definition of A::NestedInline::method and not A::NestedOutOfLine::method.

      I marked Qt Creator 1.3 prerelease as an affected version as I noticed this on what was billed as version 1.3.0-rc1 on my customer download page but actually installs as version 1.2.94.

      Attachments

        Issue Links

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

          Activity

            People

              raggi Roberto Raggi
              paul.fotheringham@crocodile-clips.com Paul Fotheringham
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes