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

Navigation between a mismatched method declaration and definition doesn't work with Clang code model

    XMLWordPrintable

Details

    • Windows
    • 09e495f01a6ef1592b51dde08f459fadafaa9e05

    Description

      If you have a mismatch between the declaration and definition of a method, you cannot navigate between them when the Clang code model is active, however you (usually) can with the old code model.

      For example, if you have this in a header file:

      class Foo {
      public:
        void foo(int bar);
      };

      and this in a cpp file:

      void Foo::foo(int bar) const  // <-- declared const here, but not in header
      { ... }

      then you cannot Ctrl+Click on Foo::foo to jump back to the declaration and fix it up when using the Clang code model. This is something that works - and is very useful - with the old code model.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            vilya Vilya Harvey
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes