2007-07-11 21:01:13 +04:00
|
|
|
//===---------------------------------------------------------------------===//
|
|
|
|
// Minor random things that can be improved
|
|
|
|
//===---------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//===---------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
Lexer-related diagnostics should point to the problematic character, not the
|
|
|
|
start of the token. For example:
|
|
|
|
|
|
|
|
int y = 0000\
|
|
|
|
00080;
|
|
|
|
|
|
|
|
diag.c:4:9: error: invalid digit '8' in octal constant
|
|
|
|
int y = 0000\
|
|
|
|
^
|
|
|
|
|
|
|
|
should be:
|
|
|
|
|
|
|
|
diag.c:4:9: error: invalid digit '8' in octal constant
|
|
|
|
00080;
|
|
|
|
^
|
|
|
|
|
2007-07-16 10:55:01 +04:00
|
|
|
This specific diagnostic is implemented, but others should be updated.
|
|
|
|
|
2007-07-11 21:01:13 +04:00
|
|
|
//===---------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|