summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add various tests for captures and the reaching scope of the lambdaDouglas Gregor2012-02-101-0/+15
| | | | | | | expression. Implement C++11 [expr.prim.lambda]p12's requirement that capturing a variable will odr-use it. llvm-svn: 150237
* Remove the "unsupported" error for lambda expressions. It's annoying,Douglas Gregor2012-02-091-5/+4
| | | | | | and rapidly becoming untrue. llvm-svn: 150165
* Various interrelated cleanups for lambdas:Douglas Gregor2012-02-091-5/+7
| | | | | | | | | | | | | | - Complete the lambda class when we finish the lambda expression (previously, it was left in the "being completed" state) - Actually return the LambdaExpr object and bind to the resulting temporary when needed. - Detect when cleanups are needed while capturing a variable into a lambda (e.g., due to default arguments in the copy constructor), and make sure those cleanups apply for the whole of the lambda expression. llvm-svn: 150123
* Improve checking of explicit captures in a C++11 lambda expression:Douglas Gregor2012-02-011-0/+24
- Actually building the var -> capture mapping properly (there was an off-by-one error) - Keeping track of the source location of each capture - Minor QoI improvements, e.g, highlighing the prior capture if there are multiple captures, pointing at the variable declaration we found if we reject it. As part of this, add standard citations for the various semantic checks we perform, and note where we're not performing those checks as we should. llvm-svn: 149462
OpenPOWER on IntegriCloud