Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | //===---------------------------------------------------------------------===// |
| 2 | // Minor random things that can be improved |
| 3 | //===---------------------------------------------------------------------===// |
| 4 | |
| 5 | |
| 6 | |
| 7 | //===---------------------------------------------------------------------===// |
| 8 | |
| 9 | Lexer-related diagnostics should point to the problematic character, not the |
| 10 | start of the token. For example: |
| 11 | |
| 12 | int y = 0000\ |
| 13 | 00080; |
| 14 | |
| 15 | diag.c:4:9: error: invalid digit '8' in octal constant |
| 16 | int y = 0000\ |
| 17 | ^ |
| 18 | |
| 19 | should be: |
| 20 | |
| 21 | diag.c:4:9: error: invalid digit '8' in octal constant |
| 22 | 00080; |
| 23 | ^ |
| 24 | |
Chris Lattner | 136f93a | 2007-07-16 06:55:01 +0000 | [diff] [blame] | 25 | This specific diagnostic is implemented, but others should be updated. |
| 26 | |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 27 | //===---------------------------------------------------------------------===// |
| 28 | |
| 29 | |