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

With clangd code model F2 jumps to declaration or definition of method

XMLWordPrintable

    • Windows

      DoubleDiff Double::operator-(const Double& sub) const
         {
         return DoubleDiff(_double - sub._double);
         }
      
      Double d1(100.);
      Double d2(50.);
      
      double diff = (d1-d2).diff();       // F2 cursor in diff() -> jumps to declaration
      
      DoubleDiff doubleDiff = (d1-d2);
      diff = doubleDiff.diff();           // F2 cursor in diff() -> jumps to definition
      

      See attached Project.

      With clangd code model (libclangd) F2 jumps to declaration or definition.

      With the new clangd(EXPERIMENTAL) in both cases F2 jumps to definition.

       

        1. Test_02.zip
          1 kB
          Michael Möllney
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes