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

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

Pergunta

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?

Foi útil?

Solução 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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top