summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/cxx1z-fold-expressions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR41845: Detect and reject mismatched inner/outer pack expansion sizesRichard Smith2019-05-131-0/+10
| | | | | | in fold expressions rather than crashing. llvm-svn: 360563
* [c++20] P0515R3: Parsing support and basic AST construction for operator <=>.Richard Smith2017-12-141-0/+16
| | | | | | | | | | | | | | | Adding the new enumerator forced a bunch more changes into this patch than I would have liked. The -Wtautological-compare warning was extended to properly check the new comparison operator, clang-format needed updating because it uses precedence levels as weights for determining where to break lines (and several operators increased their precedence levels with this change), thread-safety analysis needed changes to build its own IL properly for the new operator. All "real" semantic checking for this operator has been deferred to a future patch. For now, we use the relational comparison rules and arbitrarily give the builtin form of the operator a return type of 'void'. llvm-svn: 320707
* Implement P0036R0: remove support for empty unary folds of +, *, |, &.Richard Smith2016-03-041-7/+8
| | | | llvm-svn: 262747
* Fix parsing of fold-expressions within a cast expression. We parse theRichard Smith2014-11-111-3/+2
| | | | | | | parenthesized expression a bit differently in this case, just in case the commas have special meaning. llvm-svn: 221661
* [c++1z] N4295: fold-expressions.Richard Smith2014-11-081-0/+78
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