summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-ambig-decl-expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Properly disambiguate between array declarators and array subscript expressions.Richard Smith2019-11-271-0/+22
|
* Improve function / variable disambiguation.Richard Smith2019-05-071-0/+2
| | | | | | | | Keep looking for decl-specifiers after an unknown identifier. Don't issue diagnostics about an error type specifier conflicting with later type specifiers. llvm-svn: 360117
* Add missing direct-init / parameter-declaration-clause disambiguation whenRichard Smith2018-02-021-0/+4
| | | | | | parsing a trailing-return-type of a (function pointer) variable declaration. llvm-svn: 324151
* When disambiguating an expression-statement from a declaraton-statement, if theRichard Smith2012-08-231-0/+3
| | | | | | | statement starts with an identifier for which name lookup will fail either way, look at later tokens to disambiguate in order to improve error recovery. llvm-svn: 162464
* When we're performing tentative parsing to determine whether theDouglas Gregor2010-07-151-0/+10
parser is looking at a declaration or an expression, use a '=' to conclude that we are parsing a declaration. This is wrong. However, our previous approach of finding a comma after the '=' is also wrong, because the ',' could be part of a template-argument-list. So, for now we're going to use the same wrong heuristic as GCC and Visual C++, because less real-world code is likely to be broken this way. I've opened PR7655 to keep track of our wrongness; note also the XFAIL'd test. Fixes <rdar://problem/8193163>. llvm-svn: 108459
OpenPOWER on IntegriCloud