summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx1z-fold-expressions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Parse a possible trailing postfix expression suffix after a fold expressionNicolas Lesser2018-07-271-0/+26
| | | | | | | | | | | | | | | | | Summary: This patch allows the parsing of a postfix expression involving a fold expression, which is legal as a fold-expression is a primary-expression. See also https://llvm.org/pr38282 Reviewers: rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D49848 llvm-svn: 338170
* Fix usage of right shift operator in fold expressionsRichard Smith2017-10-311-0/+17
| | | | | | | | The right shift operator was not seen as a valid operator in a fold expression, which is PR32563. Patch by Nicolas Lesser ("Blitz Rakete")! llvm-svn: 317032
* PR24440: Do not silently discard a fold-expression appearing as the operand ↵Richard Smith2017-02-151-0/+9
| | | | | | of a cast-expression. llvm-svn: 295224
* PR26276: Fix detection of non-cast-expressions as operands of fold-expressions.Richard Smith2016-10-201-0/+7
| | | | llvm-svn: 284684
* [c++1z] N4295: fold-expressions.Richard Smith2014-11-081-0/+29
This is a new form of expression of the form: (expr op ... op expr) where one of the exprs is a parameter pack. It expands into (expr1 op (expr2onwards op ... op expr)) (and likewise if the pack is on the right). The non-pack operand can be omitted; in that case, an empty pack gives a fallback value or an error, depending on the operator. llvm-svn: 221573
OpenPOWER on IntegriCloud