Re: [cedet-semantic] Incomplete list of tags inside a single c file.
Brought to you by:
zappo
From: Eric L. <er...@si...> - 2018-01-14 13:44:19
|
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 > ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-semantic > |