Re: [CEDET-devel] [RFC] bovinator improperly parses attributes at the end of function declaration
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2011-04-08 02:29:43
|
On 04/07/2011 04:10 PM, David Engster wrote: > Darren Hoo writes: >> David Engster<de...@ra...> writes: >> >>> (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("SOMESYMBOL" . "")) >>> >>> As you can see in the *-symbol-map-builtin variable, we also include >>> some symbols from the glibc by default; if you think there are some >>> important ones missing, please let us know and we'll include them there. >> >> extern int atexit (void (*__func) (void)) __THROW __nonnull ((1)); >> ~~~~~~~~~ >> this one > > Thanks, I added that. > > Maybe we should just add cdefs.h to > semantic-lex-c-preprocessor-symbol-file by default. It could slow down > parsing, but it's not that big. I'm not sure. I think it would make sense to include cdefs.h if it is found. The use of specific headers for feeding the preprocessor symbol table is fast because it is calculated once. It is the dynamically calculated list of headers that would be too slow. The use of cdefs.h will need to be based on if it exists or not. Is it standard, or just related to gcc? Eric |