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

Xaver Gerster <[email protected]> Fri, 24 Oct 2014 22:18:45 +0200
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
> Do you think you may need a using statement somewhere to help find your tag?

Hi Eric,

I think that 'using namespace std;' statements are all in proper places.
A caricature of the structure of the code would be:

--------------------
// file utility.h
#include <vector>
using namespace std;

....stuff...


-------------------
// file doit.cc
#include "utility.h"

int main() {
   vector<double> v;

 >

...stuff...

}

--------------------
// file utility.cc
#include "utility.h"

void f(whatever...) {
   vector<double> v;

...stuff...

}

So, both vectors in file doit.cc and utility.cc 'know' about the 
namespace 'std'. (I guess if they wouldn't, gcc would cough anyway.)

Now, as I tried to described in my post, what happens is, that I can do 
a certain number of C-j on the tag 'vector' in either of the files, 
doit.cc or utility.cc, and it will transfer me to the systems 
stl_vector.h header, .... but then, 'all of a sudden'(?), doing C-j on 
any of the *same* vector<double>s at the same locations where C-j 
previously worked, will not transfer me to stl_vector.h anymore, but to 
the location of the line '#include <vector>' in file utility.h.

I have not tried if I would get this issue also with a bare bones 
project stripped down to exactly the preceding caricature. But I'll do.

> Good Luck
Would you have an additional idea, just to jog that aspect of luck?

Xaver

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