Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 6.0.0
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.