Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Better Find References

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Dusan Posted - Nov 11 2013 : 05:05:48 AM
It would be fine to have similar options as in Reflector's Analyze tool.
Particulary:
Assigned By, Exposed By, Used By, Instantiated By

Exposed By - All instances, where symbol is exposed (i.e. used as argument of exposed method, used as property value, etc.)
Instantiated By - All intances of symbol, where it is created new instance of it.
Assigned By - All instances, where instance of symbol is assigned
Used By - All other instances, where symbol is used (and does not fall into previous groups).
12   L A T E S T    R E P L I E S    (Newest First)
sean Posted - May 23 2014 : 3:05:07 PM
A new case was opened for filtering of Find References results: case=78686.
case=78686 is implemented in build 2036.
See the context menu for filtering commands and keyboard shortcuts.
feline Posted - Dec 23 2013 : 12:50:12 PM
Apologies for the slow reply.

If I understand correctly, you actually want to find just the derived classes then, so effectively you are trying to use Find References to explore the class hierarchy. Is this right?

This is something we are looking into doing at some point, since exploring this is often useful:

case=79187
Dusan Posted - Dec 11 2013 : 01:55:44 AM
quote:
Originally posted by feline

Once you know which classes are derived from the base class, you can run individual Find References on each of those classes, and clone the Find References Results window as you go, allowing you to keep all of the results open at once, along side each other.

But my goal is to list all derived classes while I do not like to go and manually open each file in solution that contains classes derived from my abstract class.

quote:
Originally posted by feline
Why are you after this particular find? It seems a very specific request, but I am not initially sure why this is helpful, and I am not sure how much use it would get in general.


My C++ libraries must be generic, so I use many abstract classes with all pure virtual methods and time to time I have to add or remove some method(s) from the abstract class. However that means, that also I need to modify all derived classes and sometimes I need to change logic of related code to those classes. It is currently not as trivial operation, so I must use compiler errors to find all classes derived from abstract one.
feline Posted - Dec 10 2013 : 7:38:58 PM
Once you know which classes are derived from the base class, you can run individual Find References on each of those classes, and clone the Find References Results window as you go, allowing you to keep all of the results open at once, along side each other.

Why are you after this particular find? It seems a very specific request, but I am not initially sure why this is helpful, and I am not sure how much use it would get in general.
Dusan Posted - Dec 10 2013 : 03:27:48 AM
> Are you trying to find all references to the derived classes in your code base?
Yes.
feline Posted - Dec 09 2013 : 6:10:05 PM
Are you trying to understand the class hierarchy, so you only want the declarations of the derived classes? Or are you trying to find all references to the derived classes in your code base?

I can see that Find References is not helping in either case, but this is a slightly different task than the one Find References is designed for.
Dusan Posted - Nov 29 2013 : 05:56:05 AM
What you wrote is true for overriden methods, but not inherited classes.

Lets say you have a base class:
class foo_base
{
virtual ~foo_base() {}
};

And somewhere in code you have some classes derived from it:
class foo_1 : public foo_base {...}
class foo_2 : public foo_base {...}
class foo_2 : public foo_base {...}
class foo_2 : public foo_base {...}

each in some different header file or cpp file.

Now, if you like to get ONLY a list of all classes that inherits from foo_base, you can not. It lists also all instances to foo_base:

// not wanted references
void use_foo(foo_base * foo) { ... }
foo_base * get_foo(...); //

And so on...
feline Posted - Nov 28 2013 : 1:10:52 PM
If you are asking VA to show ONLY overridden and inherited references then you are actually asking VA to remove all references of the function you triggered Find References on. Or am I misunderstanding?

From a support point of view, telling VA to return zero references to the item you just just did a Find References on is a problem just waiting to happen

What are you trying to achieve here?
Dusan Posted - Nov 28 2013 : 02:48:14 AM
In addition to this:

Current Find references supports switch "Display overriden and inherited references".

What is missing is a way to search ONLY for those.
feline Posted - Nov 27 2013 : 6:19:12 PM
We are a relatively small company, but very focussed, and hopefully effective.
foxmuldr Posted - Nov 27 2013 : 12:18:43 PM
How many people work on VAX?
feline Posted - Nov 27 2013 : 10:48:39 AM
An interesting idea, I have put in a feature request to see what our developers make of this:

case=78686

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000