summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPExpressions.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix typo, improve comment.Chris Lattner2008-05-051-5/+6
| | | | llvm-svn: 50666
* Fix a few more bugs in preprocessor expressions w.r.t. ?:. Now I Chris Lattner2008-05-051-12/+24
| | | | | | think it is really right. :) This fixes PR2284. llvm-svn: 50665
* Neil pointed out that clang doesn't generate ranges from diagnosticsChris Lattner2008-05-051-120/+172
| | | | | | | | | | | | | | | | | | | | | | | | related to pp-expressions. Doing so is pretty simple and this patch implements it, yielding nice diagnostics like: t.c:2:7: error: division by zero in preprocessor expression #if 1 / (0 + 0) ~ ^ ~~~~~~~ t.c:5:14: error: expected ')' in preprocessor expression #if (412 + 42 ~~~~~~~~^ t.c:5:5: error: to match this '(' #if (412 + 42 ^ t.c:10:10: warning: left side of operator converted from negative value to unsigned: -42 to 18446744073709551574 #if (-42 + 0U) / -2 ~~~ ^ ~~ t.c:10:16: warning: right side of operator converted from negative value to unsigned: -2 to 18446744073709551614 #if (-42 + 0U) / -2 ~~~~~~~~~~ ^ ~~ 5 diagnostics generated. llvm-svn: 50638
* fix a bug handling right associative operators that Neil noticed, hopefullyChris Lattner2008-05-051-14/+4
| | | | | | the final part of PR2279 llvm-svn: 50635
* ||/&& do not do UAC's either. This silences a bogus warning on #if -1 || 4U.Chris Lattner2008-05-041-4/+10
| | | | llvm-svn: 50632
* Neil points out that commas don't do UACs either.Chris Lattner2008-05-041-1/+1
| | | | llvm-svn: 50631
* Fix the rest of PR2279:Chris Lattner2008-05-041-4/+7
| | | | | | | | | a) correct rejection of ',' in pp expressions. b) the precedence of ',' was wrong w.r.t. ?:. Thanks again to Neil for finding these and providing testcases. llvm-svn: 50625
* Fix PR2279 part C: shifts don't perform the UACs, thanks to Neil Chris Lattner2008-05-041-2/+4
| | | | | | for pointing this out. llvm-svn: 50624
* fix a nasty bug that Neil identifier in pp-expr parsing (this is PR2279 part D).Chris Lattner2008-05-041-5/+13
| | | | llvm-svn: 50617
* Fix PR2220, making diagnostics for unexpected tokens in pp expressions Chris Lattner2008-04-131-3/+3
| | | | | | more nice. llvm-svn: 49619
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+639
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
OpenPOWER on IntegriCloud