Anders Carlsson
2898af59dc
Update tests
...
llvm-svn: 81802
2009-09-14 22:00:20 +00:00
Douglas Gregor
71235ecb7f
When determining whether an expression refers to a bit-field, look
...
into the left-hand side of an assignment expression. This completes
most of PR3500; the only remaining part is to deal with the
GCC-specific implementation-defined behavior for "unsigned long" (and
other) bit-fields.
llvm-svn: 70623
2009-05-02 02:18:30 +00:00
Douglas Gregor
d2c2d172da
Fix bitfield promotions in several more cases. We don't seem to work hard enough at determining whether an expression is a bitfield or not, yet.
...
llvm-svn: 70613
2009-05-02 00:36:19 +00:00
Douglas Gregor
8d9c509975
Implement bit-field promotion rules for C99. Fixes PR3500.
...
llvm-svn: 70571
2009-05-01 20:41:21 +00:00
Chris Lattner
f9b00eb7dc
clean up anonymous bitfield diagnostics, PR4017
...
llvm-svn: 69608
2009-04-20 17:29:38 +00:00
Daniel Dunbar
a45cf5b6b0
Rename clang to clang-cc.
...
Tests and drivers updated, still need to shuffle dirs.
llvm-svn: 67602
2009-03-24 02:24:46 +00:00
Anders Carlsson
6caa9dd693
Check signedness of bitfield sizes.
...
llvm-svn: 67045
2009-03-16 18:19:21 +00:00
Douglas Gregor
8145742349
Partial fix for PR3310, concerning type-checking for tentative
...
definitions. We were rejecting tentative definitions of incomplete
(which is bad), and now we don't.
This fix is partial because we don't do the end-of-translation-unit
initialization for tentative definitions that don't ever have any
initializers specified.
llvm-svn: 66584
2009-03-10 21:58:27 +00:00
Chris Lattner
73bf7b42b6
fix PR3607 and a fixme, by checking bitfield constraints
...
more consistently.
llvm-svn: 66210
2009-03-05 22:45:59 +00:00
Chris Lattner
81ed6805db
Implement rdar://6138816 - [sema] named bitfields cannot have 0 width
...
llvm-svn: 60920
2008-12-12 04:56:04 +00:00
Chris Lattner
ece9ae718b
add annotation
...
llvm-svn: 60907
2008-12-11 23:11:52 +00:00
Anders Carlsson
5df391e5c7
Add diagnostics for bitfields.
...
llvm-svn: 60628
2008-12-06 20:33:04 +00:00