summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Remove the "unsupported" error for lambda expressions. It's annoying,Douglas Gregor2012-02-091-3/+3
| | | | | | and rapidly becoming untrue. llvm-svn: 150165
* Implement capture-by-copy for arrays in lambdas.Douglas Gregor2012-02-091-0/+2
| | | | llvm-svn: 150138
* Various interrelated cleanups for lambdas:Douglas Gregor2012-02-091-2/+2
| | | | | | | | | | | | | | - 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
* When completing a lambda expression, make sure to check and attach theDouglas Gregor2012-02-081-2/+2
| | | | | | body of the lambda to the function call operator. llvm-svn: 150087
* Introduce basic ASTs for lambda expressions. This covers:Douglas Gregor2012-02-071-0/+10
- Capturing variables by-reference and by-copy within a lambda - The representation of lambda captures - The creation of the non-static data members in the lambda class that store the captured variables - The initialization of the non-static data members from the captured variables - Pretty-printing lambda expressions There are a number of FIXMEs, both explicit and implied, including: - Creating a field for a capture of 'this' - Improved diagnostics for initialization failures when capturing variables by copy - Dealing with temporaries created during said initialization - Template instantiation - AST (de-)serialization - Binding and returning the lambda expression; turning it into a proper temporary - Lots and lots of semantic constraints - Parameter pack captures llvm-svn: 149977
OpenPOWER on IntegriCloud