Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Find function by parameter or return type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MikMik
Senior Member

42 Posts

Posted - Feb 14 2023 :  05:53:29 AM  Show Profile  Reply with Quote
Hi,
Sometimes I would like to have some way to find a function by searching for the return type and/or the parameter types, as well as its name, or part of it.

For example, I've found in our codebase some old reimplementation of the max function, with a different name, and I was trying to find more if there are any more, to remove them.

If I could search for "A function that contains max in its name (to cover "GetMax", "Maximum", "Maximo"...), takes 2 doubles and returns a double", it would be easier...

Or "I know there must be some function that takes so and so, and returns bool"...
Right now, we have some inconsistent names, and searching for the right function takes some time.

Could something like this be added to Visual Assist?
Thanks!

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 14 2023 :  06:39:46 AM  Show Profile  Reply with Quote
We are considering changing the Find Symbol dialog to allow searching of parameters. One reason for caution here is performance, since large solutions tend to have a lot of symbols listed in this dialog. When we do look at this then adding the return type is worth considering.

case=61242

For now you would need to consider some form of regular expression search string, which is likely to return quite a lot of extra stuff.

zen is the art of being at one with the two'ness
Go to Top of Page

MikMik
Senior Member

42 Posts

Posted - Feb 14 2023 :  08:16:49 AM  Show Profile  Reply with Quote
Thanks! Yes, I've used a regexp, but, as you know, they are not exactly trivial to use.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000