Re: Some files that CEDET cannot parse and produce errors
David Engster <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
Eric M. Ludlam writes: > On 06/03/2014 03:18 PM, David Engster wrote: >> Tu Do writes: >>> hif-shiftleft: Arithmetic error >>> Parsing jiffies.h (LL)... > >>> Idle Parse Error: "#<buffer jiffies.h> - Arithmetic error" >> >> This is a bug in hide-ifdef-mode, which is used by Semantic to see if it >> should skip #if/#ifdef blocks during parsing. This mode was partly >> rewritten lately, and older versions do not throw this error, which is >> why Eric could not reproduce it. >> >> I filed an Emacs bug: >> >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17681 > > Thanks David. I was coming to that same conclusion, which is what my > patch was related to. > > So the question is; should the C parser defend against bad hideif code, > or let hideif continue to have it's errors exposed via the C preprocessor? Wrapping the calls to hideif in a condition-case definitely makes sense, since otherwise you're constantly seeing this error popping up. However, instead of completely ignoring the error, it'd be nicer to push a parser warning which can be dumped later. -David ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech