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
 Technical Support
 1724: Cannot find references to C++ constructor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MHaggag
Junior Member

Egypt
14 Posts

Posted - Jun 04 2009 :  7:24:08 PM  Show Profile  Reply with Quote
Attempting to find references on class constructors finds all references to the class itself.

Example:
class Test
{
public:
    Test();
    Test(const Test& source);
    explicit Test(int value);

private:
    int someData;
};

int main()
{
    Test t1;
    Test t2(t1);
    Test t3(5);

    return 0;
}


Attempt to find references on any of the 3 constructors. All "Test" occurrences will be highlighted.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jun 05 2009 :  12:35:55 PM  Show Profile  Reply with Quote
Currently this is a known limitation:

case=1262

in general, finding all calls to the constructor is hard. What about copy constructors and possible casts?

There is also the second problem of overloaded constructors. Currently VA does not distinguish between overloaded methods, but this is something we are aware of and considering addressing.

zen is the art of being at one with the two'ness
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