Re: semantic-ia-fast-jump 'switches' from gcc headers to local headers

"Eric M. Ludlam" <[email protected]> Fri, 24 Oct 2014 09:33:05 -0400
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
On 10/24/2014 05:45 AM, Xaver Gerster wrote:
> However, after working on the project for some time, opening files,
> compiling things, etc., suddenly and out of the blue,
> using semantic-ia-fast-jump (C-c j) on the tag 'vector' for yet another
> time, will not jump me into /usr/include/c++/4.8/bits/stl_vector.h
> anymore, instead it will take me into the local include files of my
> project, which (obviously) contain a line
>
> #include <vector>
>
> It is to that point where C-c j will jump.
> Hereafter it seems as if semantic has forgotten about
> /usr/include/c++/4.8/bits/stl_vector.h and any further C-c j will only
> jump into my local include files.

Hi Xaver,

I replicated what you describe with a simple test case like this:

#include <vector>
int main() {
   vector <double> v;
}

where it would only find the header file.  I poked around but realized 
this was because the 'vector' class wasn't part of the available symbol 
space.  So I did this:

#include <vector>
using std;
int main() {
   vector <double> v;
}

and now it finds the correct thing.

Do you think you may need a using statement somewhere to help find your tag?

Good Luck
Eric

------------------------------------------------------------------------------