SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on January 12, 2022, 09:23:03 pm

Title: How to go to type definition of an 'auto' in C++?
Post by: rowbearto on January 12, 2022, 09:23:03 pm
Lets say I have the below code in C++:

Code: [Select]
class FuncReturnType
{
}

FuncReturnType function()
{
...
}

auto var = function()

// I want to go put my cursor in 'var' below and do something similar to push-tag that takes
// me to the definition of the type of 'var' - i.e. it takes me to 'class FuncReturnType'
newfunction(var, xxx)

I would like to go to the definition of the type that 'var' is.

Is there something similar to 'push-tag' that will take me to the definition of the type of 'var' instead of where 'var' is defined?

See my comment above newfunction() in the code above for more clarity.
Title: Re: How to go to type definition of an 'auto' in C++?
Post by: Dennis on January 12, 2022, 10:07:43 pm
There isn't, but it is a really good idea.  I am going to add an FR for this for the next release (and get to work on it soon).

A couple bits that are already there:
Title: Re: How to go to type definition of an 'auto' in C++?
Post by: rowbearto on January 12, 2022, 10:18:47 pm
Thanks so much Dennis!