Re: [cedet-semantic] C++ include guards interfering with semantic takeover of hideif
Brought to you by:
zappo
From: David E. <de...@ra...> - 2013-11-06 17:08:07
|
Luis Fors writes: > I use (setq semantic-c-takeover-hideif t) along with (setq > hide-ifdef-shadow t) to selectively gray-out code depending on the > value of :spp-table specified in my ede project. > > I notice the problem when I switch to a c++ header file, and almost > the entire contents are grayed-out (save for the very top and bottom). Yes. This is because the way Semantic provides symbols to hide-ifdef does not take into account *where* the symbol is defined; it will just see it as defined in the current buffer. This isn't too hard to fix, but I'm in the process of rewriting the preprocessor handling anyway, and this will be fixed along the way. So at the moment, it is best to not use this feature, or at least to turn it off in header files. > I have a sneaking suspicion that it affects parsing as well. Hmm. Parsing should still work. You can use M-x semantic-dump-parser-warnings to see what is skipped during parsing. -David |