summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/expressions.c
Commit message (Collapse)AuthorAgeFilesLines
* Continue parsing an expression list even after an error is encountered.Kaelyn Takata2014-07-141-0/+6
| | | | | | | | | Otherwise, multiple errors such as having unknown identifiers for two arguments won't be diagnosed properly (e.g. only the first one would have a diagnostic message if typo correction fails even though both would be diagnosed if typo correction suggests a replacement). llvm-svn: 213003
* Make wording for certain invalid unary expressions more consistent.David Majnemer2013-10-091-4/+4
| | | | | | | | | | An invalid decltype expression like 'decltype int' gives: error: expected '(' after 'decltype' This makes it so 'sizeof int' gives a similar one: error: expected parentheses around type name in sizeof expression llvm-svn: 192258
* Fixed messages in tests.Serge Pavlov2013-10-081-4/+4
| | | | llvm-svn: 192208
* Add fixits suggesting parenthesis around type name in expressions like sizeof.Serge Pavlov2013-10-081-0/+10
| | | | | | This fixes PR16992 - Fixit missing when "sizeof type" found. llvm-svn: 192200
* Diagnose a missing ')' on what looks like a statement expression.John McCall2011-04-061-0/+6
| | | | | | | A situation where we can get an invalid ExprResult without an error. Fixes PR8394. Patch by Justin Bogner! llvm-svn: 128979
* Treat __extension__ like ParenExpr.Abramo Bagnara2010-10-151-1/+2
| | | | llvm-svn: 116569
* Eliminate the "minimal" and printing parser actions, which only everDouglas Gregor2010-07-261-14/+16
| | | | | | | worked for C anyway. Also kills the -cc1 options -parse-noop and -parse-print-callbacks. llvm-svn: 109392
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Improve error recovery for calls, fixing:Chris Lattner2009-04-131-1/+8
| | | | | | PR3972: Poor diagnostic with missing ')' llvm-svn: 68932
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Fix for PR3418: make sure to handle the RHS of expressions starting with Eli Friedman2009-01-271-0/+4
| | | | | | __extension__. This sort of construct shows up in the gcc source code. llvm-svn: 63100
* Parse "sizeof(arr)[0]" as a sizeof of an expr if arr Chris Lattner2007-11-131-0/+9
| | | | | | is an expression. llvm-svn: 44065
* reenable this.Chris Lattner2007-08-251-1/+1
| | | | llvm-svn: 41397
* test the parser only, not sema.Chris Lattner2007-08-251-4/+2
| | | | llvm-svn: 41395
* update testsChris Lattner2007-07-121-0/+2
| | | | llvm-svn: 39786
* new offsetof testcaseChris Lattner2006-08-121-0/+5
| | | | llvm-svn: 38892
* add test4Chris Lattner2006-08-121-1/+5
| | | | llvm-svn: 38886
* Split the expression tests out of statements.c into expressions.cChris Lattner2006-08-121-0/+21
llvm-svn: 38882
OpenPOWER on IntegriCloud