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

    • Platform/s:
      Windows

      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

            Assignee:
            bubke Marco Bubke
            Reporter:
            vilya Vilya Harvey
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes