Community
Participate
Working Groups
Created attachment 114271 [details] org.eclipse.cdt.core patch to add support for binary constants GCC has supported binary constants (prefixed with 0b or 0B) since 4.3.0, see http://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html Some GCC derivatives (like avr-gcc) and some other C compilers have supported binary constants even longer. However CDT flags them as "Invalid decimal format" in the source editor. As eclipse/CDT is already popular for embedded processor work, binary constants should be supported by CDT. I have attached a patch to org.eclipse.cdt.core to add this support to the parser scanner. Also attached is a patch to org.eclipse.cdt.core.tests containing a small test case for binary constants. I have run the full CDT test suite against the patch and there seem to be no side effects. The patch is fairly straightforward and on behalf of many bit-fiddling programmers I would appreciate it if this patch could be included in one of the next CDT releases. brgds, Thomas
Created attachment 114272 [details] org.eclipse.cdt.core patch to test the support for binary constants
Thanks a lot for contributing to CDT. The patches applied to cdt_5_0 and HEAD > 20081005.
assigning
assigned.