Can Visual Assist's find all references find only references to to certain class constructor?

StackOverflow https://stackoverflow.com/questions/15662352

문제

I have C++ code and VA works nicely but I kind of dont like that when I go to

MyClass::MyClass(const std::string& arg);

and try to find references it finds references of MyClass, not just this specific ctor. Can desired behavior be achieved?

도움이 되었습니까?

해결책 2

According to this post on their forum, it has not been implemented yet.

They cite the increased difficulty in detecting object construction vs. explicit member access.

다른 팁

Although this functionality still not available in VS2013 SP3 there exists a workaround. Some may consider it a huck but what works for me is to change constructor signature (by introducing additional unused argument) and recompiling entire solution. Let compilation errors point out all invocations. No VA is needed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top