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

Details

    • Windows

    Description

      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.

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes