blob: 17fba95bd986f729c11b5bd44cd9b16832f22de1 [file] [log] [blame]
Chris Lattner4b009652007-07-25 00:24:17 +00001//===---------------------------------------------------------------------===//
2// Minor random things that can be improved
3//===---------------------------------------------------------------------===//
4
5
Chris Lattnerd8c4f142007-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 ||.
Chris Lattner4b009652007-07-25 00:24:17 +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
27This specific diagnostic is implemented, but others should be updated.
28
29//===---------------------------------------------------------------------===//
30
31