T O P I C R E V I E W |
Blake |
Posted - Nov 26 2017 : 6:36:28 PM I often use Find References to find where instances of a certain class are being created, but I sometimes end up having to wade through a whole lot of extra stuff to find what I'm searching for.
It would be useful if there were a few filter toggles in the Find References window to quickly filter out unwanted results based on what you're currently looking for.
For example my current find references window (with 63 references in 24 files with only one actual place it's being constructed) shows (In order of most to least annoying): A heap of files #including the matching classes header without referring to it directly. Not at all what I'm looking for. All that classes member function definitions, again not useful as they're not even referring to instances of the class. Places using sizeof(class) or alignof(class). Occasionally useful, but would be nice to filter out when looking for instances. Functions taking const pointers/references to the class. Sometimes useful, but not if I'm just looking for where they're created/modified. Functions taking non-const pointers/references to the class. Useful when looking for where they're modified, but not for where they're created.
I believe having a way to filter out these results from in the find references window would speed up certain use cases tremendously. |
3 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Nov 28 2017 : 08:14:23 AM We've added documentation for the feature: https://docs.wholetomato.com/default.asp?W189#creation |
Blake |
Posted - Nov 27 2017 : 4:35:51 PM Yep, exactly what I was looking for, I'd only looked at the buttons along the top (display inherited, etc.). Hadn't tried right clicking in the window. Thanks! |
accord |
Posted - Nov 26 2017 : 9:35:47 PM You can filter the result by right-clicking on the VA Find References window. In that context menu you will find the types of references that are currently listed for your class. There is a category for includes as well. You can see most types on my attached sample picture:
If you disable the other categories, and only leave the one framed by red, you are only left with creations.
Hope this helps. |
|
|