support functions declared in local scope
[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 - check semantic for functions declared/defined in global scope and declared
24   again in a local scope
25
26 ast2firm:
27 - output source file positions for panics...
28 - output variable names for uninitialized variable warnings
29 - handle bitfield members with 0 correctly (standard says this finished the
30   current unit)
31
32 Missing Warnings:
33 * dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
34 * unused label
35 *