Re: Incomplete list of tags inside a single c file.

Eric Ludlam <[email protected]> Sun, 14 Jan 2018 08:44:10 -0500
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
If this is in a project where there is a header that defines your set of
defines used in your code, you can set
'semantic-lex-c-preprocessor-symbol-file' to that file.  Then all the 
defines will be set.  If you don't have that, you can just write one and 
stash it anywhere.

Internally the semantic parser uses 'hideif', so if there is a way to do 
this in hideif, then it will probably translate to semantic, but I 
haven't fiddled with that.

You could also rewrite semantic-c-hideif-defined to do something different.

I recommend the symbol file, b/c it will be more explicit and easy to 
add things to.

Eric

On 01/12/2018 06:43 AM, Shiyao MA wrote:
> Now I have a question:
> 
> Is it possible to set all the symbol to a default value "" ?
> 
> There are many #ifdef macros in the code, I'd like semantic assume all 
> the macros are defined.
> 
> Best,
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> cedet-semantic mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot