Hi,
The behavior you get from symref is dependent on the external tool you
use that Semantic links too. (ie, if you use GNU Global, and if it
doesn't track that stuff, that is the reason.)
Alternately, if you are using the basic locate/grep combination, it
could be that something is wrong with the patterns that tries to pick
out the files to grep in. For example, if you have your .h files in "c"
mode, then it will only look for ".[ch]" files. If you have .h files
switched into "c++" mode, then it will also search in cpp files. See
semantic/symref/semantic-symref-grep.el for the file pattern alist for
more details.
Eric
On Thu, 2009-06-04 at 01:42 -0700, Anand Dhanakshirur wrote:
> why semantic-symref-symbol does not list the references which are present in .cpp files?
>
> For Ex:,
> enum States
> {
> ST_BSC_GS_AM_IDLE = 1,
> ST_BSC_GS_AM_BND_PEND,
> ST_BSC_GS_AM_SCCP_CFGD,
> ST_BSC_GS_AM_READY,
> ST_BSC_GS_AM_BSC_ACTIVE,
> ST_BSC_GS_AM_MAX_STATE,
> };
> the above enum is defined in a bscGsAm.h
> if i place the cursor on ST_BSC_GS_AM_BND_PEND
> and call semantic-symref-symbol on ST_BSC_GS_AM_BND_PEND,
> It lists out the references which are there in bscGsAm.h,
> But it does not list out the references in other .cpp files.
>
> Why is it so?
>
> How to make it to list all references present in .cpp files also.
>
> However when called from a .cpp file
> for ex:
> ST_BSC_GS_AM_BND_PEND in bscGsAm.cpp file
> It lists out all the references including .cpp and .h files.
> regards,
> Anand
>
>
>
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> cedet-semantic mailing list
> cedet-semantic@...
> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
|