summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Diagnostics] Try to improve warning message for -Wreturn-typeDávid Bolvanský2019-11-091-1/+1
| | | | | | | | | | | | | | Summary: I agree with https://easyaspi314.github.io/gcc-vs-clang.html?fbclid=IwAR1VA0qxiWVUusOQUv5z7JESS7ZpeJy-UqAI5mnJscofGLqXcqeErIUB2gU, current warning message is not very good. We should try to improve it.. Reviewers: rsmith, aaron.ballman, easyaspi314 Reviewed By: aaron.ballman Subscribers: arphaman, Quuxplusone, mehdi_amini, hiraditya, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D69762
* Specialize noreturn diagnostics for lambda expressions.Douglas Gregor2012-02-151-1/+1
| | | | llvm-svn: 150586
* Lambdas have a deleted default constructor and a deleted copyDouglas Gregor2012-02-121-0/+2
| | | | | | assignment operator, per C++ [expr.prim.lambda]p19. Make it so. llvm-svn: 150345
* Don't introduce a lambda's operator() into the class until after weDouglas Gregor2012-02-101-0/+9
| | | | | | | | have finished parsing the body, so that name lookup will never find anything within the closure type. Then, add this operator() and the conversion function (if available) before completing the class. llvm-svn: 150252
* Remove the "unsupported" error for lambda expressions. It's annoying,Douglas Gregor2012-02-091-8/+7
| | | | | | and rapidly becoming untrue. llvm-svn: 150165
* Various interrelated cleanups for lambdas:Douglas Gregor2012-02-091-7/+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
* Minor comment fixDouglas Gregor2012-02-081-1/+2
| | | | llvm-svn: 150090
* When computing the type of a local variable reference within a lambda,Douglas Gregor2012-02-081-2/+35
| | | | | | | | only add 'const' for variables captured by copy in potentially evaluated expressions of non-mutable lambdas. (The "by copy" part was missing). llvm-svn: 150088
* When completing a lambda expression, make sure to check and attach theDouglas Gregor2012-02-081-0/+12
body of the lambda to the function call operator. llvm-svn: 150087
OpenPOWER on IntegriCloud