657f26916e8a90a6d9a6d0d0b9d337359256673e
[cparser] / TODO
1 Refactoring:
2 - create an empty_statement_t and use that instead of a NULL pointer in places
3   like if, loop bodys, statements after labels
4
5 Lexer:
6 - Add preprocessor code
7 - proper handling of different file encodings, parsing non-ascii strings
8 - We could save some space by holding source positions in a separate (somehow
9   compressed table) and only storing pointers to it on the AST.
10
11 Parser:
12 - the expect macros abort functions directly. This leads to some functions
13   not resetting the current context properly (parse_for)
14 - label: declaration; is no valid C99 but we parse it anyway
15 - designator support for initializers
16 - add constant folding code
17 - Refactor code, so code to handle number values and strings is
18   an own module and replacable
19 - Support some attributes. noreturn, unused, printf, scanf, packed would be
20   interesting candidates
21 - SourcePositions could be stored selectively on expressions that really need
22   them.
23
24 ast2firm:
25 - output source file positions for panics...
26 - output variable names for uninitialized variable warnings
27 - handle bitfield members with 0 correctly (standard says this finished the
28   current unit)
29
30 Missing Warnings:
31 * dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
32 * unused label
33 *