blob: 17fba95bd986f729c11b5bd44cd9b16832f22de1 [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001//===---------------------------------------------------------------------===//
2// Minor random things that can be improved
3//===---------------------------------------------------------------------===//
4
5
Chris Lattnercd098472007-10-10 18:08:07 +00006Warn about "X && 0x1000" saying that the user may mean "X & 0x1000".
7Probably only want to do this for hex immediates. Likewise for ||.
Reid Spencer5f016e22007-07-11 17:01:13 +00008
9//===---------------------------------------------------------------------===//
10
11Lexer-related diagnostics should point to the problematic character, not the
12start of the token. For example:
13
14int y = 0000\
1500080;
16
17diag.c:4:9: error: invalid digit '8' in octal constant
18int y = 0000\
19 ^
20
21should be:
22
23diag.c:4:9: error: invalid digit '8' in octal constant
2400080;
25 ^
26
Chris Lattner136f93a2007-07-16 06:55:01 +000027This specific diagnostic is implemented, but others should be updated.
28
Reid Spencer5f016e22007-07-11 17:01:13 +000029//===---------------------------------------------------------------------===//
30
31