Re: [cedet-semantic] Semantic intellisense "cannot find types for..."
Brought to you by:
zappo
From: Simon B. <sbi...@go...> - 2011-10-18 08:21:44
|
First of all, thank you so much for your reply. I updated my config according to your recommendations. 2011/10/9 David Engster <de...@ra...> > > Watch out for preprocessor symbols which may be not be defined. When I > add > > :spp-table '( ("IPOQUE_PROTOCOL_PPLIVE" . "1") ) > > completions for ipoque_struct work for me amazing, that works. What's the proper way around manual spp-table entries? Adding it to the global semantic-lex-c-preprocessor- symbol-file works, but why :spp-files '( "ipq_protocols_osdpi.h" ) doesn't? > If you find out which files are causing this, please let us know. So > far, I didn't see this with opendpi. There seem to be additional parsing problems in some of the opendpi files that other people in my surroundings have extended from the public version. :-( I already found one cause: in one of the header files, someone used a construct like this: #define CONSTANT 4 /* comment comment continued comment continued */ I'm not sure if this is legal C (the project apparently compiles...) but semantic stumbles on this comment, as it is started on a #define. The decoration-mode allowed me to quickly identify this problem: when I opened the header file, starting from this comment it was underlined in red. Thanks again, Simon |