Implement -Wshadow.
[cparser] / TODO
1 Refactoring:
2 - eliminate target_architecture.h and replace with stuff in lang_features.h
3
4 Lexer:
5 - Add preprocessor code.
6 - proper handling of different file encodings, parsing non-ascii strings
7 - We could save some space by holding source positions in a separate (somehow
8   compressed table) and only storing pointers to it on the AST.
9
10 Parser:
11 - disallow storage class specifiers in struct/union members
12 - add constant folding code (optional, ast2firm already does it)
13 - Refactor code, so code to handle number values (and strings?) is an own
14   module and replacable
15 - Add columns to source positions
16 - SourcePositions could be stored selectively on expressions that really need
17   them.
18 - check semantic for functions declared/defined in global scope and declared
19   again in a local scope
20 - for errors relating to function argument, print number of argument
21 - print initialisation type_path for initializer errors
22
23 ast2firm:
24 - output source file positions for panics.
25 - handle bitfield members with 0 correctly (standard says they finish the
26   current unit)
27
28 Missing Errors:
29 - goto over VLA declarations
30
31 Missing Warnings:
32 - dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
33 - catch the if(k = b) cases, maybe require all assignments to be in parentheses
34   (but some few exceptions like toplevel, nested assignments)
35  - warn when folding shift constants with too large shift amounts
36
37 main/driver:
38 - delete output file if we had an error
39 - go through gcc manual and emulate all the gcc flags...