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
 Refactor -> Find references
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alexis Pautrot
Junior Member

21 Posts

Posted - Sep 17 2010 :  08:35:45 AM  Show Profile  Reply with Quote
Finding references of constructors or destructors does not work and leads to finding usage of the class itself. It would be really nice to be able to find ctor/dtor references as for any other methods.

Thank you.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 18 2010 :  06:46:54 AM  Show Profile  Reply with Quote
It is a great idea, but in C++ it isn't very obvious what you call a constructor/destructor call.
Finding new <classname> and delete <objecttype> would work, but if you create something via macro or function call or via template constructs (i.e. in a template class), the detection of constructor calling is much more tricky. Furthermore, objects can be destructed when there is no more reference to it (or by garbage collector in C#)

So in my opinion, if we implemented such a feature it would be patchy at best.

Edited by - accord on Sep 18 2010 07:06:48 AM
Go to Top of Page

Alexis Pautrot
Junior Member

21 Posts

Posted - Sep 20 2010 :  04:25:16 AM  Show Profile  Reply with Quote
Thank for your reply,

Yes indeed, finding dynamic allocations is well done with the pattern you propose new <classname>. And finding every call occurrences is a big challenge when only relying on source code.

Let's forget about it :)
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