7a6a33a9b5598afc30772577a1badce521fc2841
[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 - eliminate target_architecture.h and replace with stuff in lang_features.h
5
6 Lexer:
7 - Add preprocessor code
8 - proper handling of different file encodings, parsing non-ascii strings
9 - We could save some space by holding source positions in a separate (somehow
10   compressed table) and only storing pointers to it on the AST.
11
12 Parser:
13 - the expect macros abort functions directly. This leads to some functions
14   not resetting the current context properly (parse_for); expect in expressions
15   suddenly return NULL which triggers asserts
16 - label: declaration; is no valid C99 but we parse it anyway
17 - designator support for initializers
18 - add constant folding code
19 - Refactor code, so code to handle number values (and strings?) is an own
20   module and replacable
21 - Support some attributes. noreturn, unused, printf, scanf, packed would be
22   interesting candidates
23 - Add columns to source positions
24 - SourcePositions could be stored selectively on expressions that really need
25   them.
26 - check semantic for functions declared/defined in global scope and declared
27   again in a local scope
28 - print initialisation type_path for initializer errors
29
30 ast2firm:
31 - handle non-constant initializers
32 - output source file positions for panics...
33 - handle bitfield members with 0 correctly (standard says they finish the
34   current unit)
35
36 Missing Warnings:
37 * dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
38 * unused label
39 *