semantic-analyze-proto-impl-toggle does not take us to the correct implementation when one tries it for a class destructor.
Steps to reproduce :-
1. In a c++ header file try the command 'semantic-analyze-proto-impl-toggle on the class destructor
2. Observe that it takes you to the definition of class constructor and not to destructor.
From: Eric M. Ludlam <eric@si...> - 2010-08-05 03:12:52
On 08/04/2010 10:33 AM, Yogesh Dalal wrote:
> semantic-analyze-proto-impl-toggle does not take us to the correct
> implementation when one tries it for a class destructor.
> Steps to reproduce :-
> 1. In a c++ header file try the command
> ‘semantic-analyze-proto-impl-toggle on the class destructor
> 2. Observe that it takes you to the definition of class constructor and
> not to destructor.
Hello to a fellow MathWorker!
The basic issue was that plain names were being used for those
functions. I updated the analyzer to make sure that found tags were
'similar' to the original. That filter resulted in more accurate jumps.
I checked in that fix with a new test for this case.
I also had to update the c++ parser which was having issues with
classifying constructors implemented in a separate file. A side effect
is that you will probably need to delete your ~/.semanticdb files to
clean up old tag caches that may have missparsed data in them.