Re: [CEDET-devel] How to make cedet ignore certain keywords
Brought to you by:
zappo
From: Chris \fakedrake\ P. <dar...@gm...> - 2011-08-04 10:41:49
|
Thank you for the reply, but that didnt seem to work The macros are in the spp as you can see here Macro Value IS_BLENDER_MODE ((spp-arg-list ("mode") 1998 . 2004) (semantic-list "((mode) >= VG_BLEND_SRC && (mode) <= VG_BLEND_DST_IN)" 2005 . 2058)) IS_POWER2 ((spp-arg-list ("x") 2076 . 2079) (semantic-list "(((x) > 0) && (((x) & ((x) - 1)) == 0))" 2080 . 2119)) SPAD_WRITE ((spp-arg-list ("data" "position") 2335 . 2351) (punctuation "*" 2352 . 2353) (semantic-list "((uint32_t*)SPAD_BASE + position)" 2353 . 2386) (punctuation "=" 2387 . 2388) (symbol "data" 2389 . 2393)) to_vshader ((spp-arg-list ("v") 2208 . 2211) (semantic-list "(to_physical(v) - codebase)" 2212 . 2239)) __SHADER_MACROS_H__ nil to_physical ((spp-arg-list ("v") 2140 . 2143) (semantic-list "((unsigned long)(v) + shader_cmd->map_offset)" 2144 . 2189)) SPAD_READ ((spp-arg-list ("data" "position") 2258 . 2274) (symbol "data" 2275 . 2279) (punctuation "=" 2280 . 2281) (punctuation "*" 2282 . 2283) (semantic-list "((uint32_t*)SPAD_BASE + position)" 2283 . 2316)) property nil loop_free nil assembly nil functional nil clobbers nil LL_CALL nil But the line inline assembly void through_incx() property(loop_free functional) clobbers() has the property(loop_free functional) clobbers() part overlined... I suspect it has to do with the fact that clobbers and property are functions... On 08/04/11 03:43, Eric M. Ludlam wrote: > Hi, > > You can add a new macro to semantic-lex-c-preprocessor-symbol-map. > Adding a new macro symbol that takes an argument isn't well documented > though. > > Alternately, you can also just add the header with that macro in it to > semantic-lex-c-preprocessor-symbol-file, or create a new header file > full of misc bogus macros, and put that in said variable. > > After doing so, you may also need to call > semantic-c-reset-preprocessor-symbol-map. > > Lastly, if you have an EDE project describing your code, you can > probably use slots in that project to define either of the above, > particularly for ede-cpp-root project has such slots ready to be used. > > Eric > > On 08/03/2011 08:17 AM, Chris "fakedrake" Perivolaropoulos wrote: >> Hello!! >> I have code that looks like this >> >> void assembly function(int arg) treat_arguments_in_a_weird_way(arg){ >> code; >> } >> >> the function "treat_arguments_in_a_weird_way" is compiler specific as is >> the "assembly" keyword >> how can i tell cedet to just ignore those specific two words when it >> parses the file? >> >> Thank you all in advance! >> >> ------------------------------------------------------------------------------ >> >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos& much more. Register early& save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> Cedet-devel mailing list >> Ced...@li... >> https://lists.sourceforge.net/lists/listinfo/cedet-devel >> |