| 1 |
In addition to " #pragma", " #error" should also be granted |
| 2 |
an exception, since the unindented form would be rejected by |
| 3 |
pre-ANSI C preprocessors. |
| 4 |
From Karl Heuer |
| 5 |
|
| 6 |
Write documentation |
| 7 |
Include an example explaining how to use cppi as part of a cvs commit hook. |
| 8 |
|
| 9 |
Add overwrite option -- maybe use GNU-style backup code. |
| 10 |
|
| 11 |
Suggestion from Ulrich Drepper: |
| 12 |
Add an option to convert code like this, removing unnecessary |
| 13 |
parentheses and adding any spaces required to replace them: |
| 14 |
#if defined(FOO) || !defined (BAR) |
| 15 |
to this: |
| 16 |
#if defined FOO || !defined BAR |
| 17 |
|
| 18 |
Allow regex filtering (use Henry Spencer's new perl-like regexps) |
| 19 |
rather than hard-coding test for .c and .h suffixes |
| 20 |
|
| 21 |
Add an option to enable the following (there's already support for it): |
| 22 |
Uli's suggestion for setting initial indentation level to e.g. -1 |
| 23 |
for header files bracketed with #ifdef FOO_H/#define FOO_H...#endif. |
| 24 |
|
| 25 |
Make sure we get a reasonable failure when cppi.l is modified |
| 26 |
and flex is not available. |
| 27 |
|
| 28 |
Likewise with cpp.gp and gperf (do this via the `missing' script). |
| 29 |
|
| 30 |
Currently, the indentation width is hard-coded |
| 31 |
at one space per nesting level. Add an option to change that. |
| 32 |
|
| 33 |
Add an option to tell cppi to ignore file-spanning directives like these: |
| 34 |
#ifndef FOO_H |
| 35 |
#define FOO_H |
| 36 |
... |
| 37 |
#endif FOO_H |