[PATCH] Simple Generic Lambdas: Chicago Reversion
Faisal Vali
faisalv at yahoo.com
Wed Sep 25 09:38:39 PDT 2013
After a line by line review of code over some deep dish, Richard suggested that we break the patch up into:
1) C++14 auto return type deduction for non-generic lambdas (which he graciously agreed to harvest out of the current patch)
2) Implement simple generic lambdas (replacing auto with a template type parameter as soon as we see it be mentioned - i.e. at the time Sema is ready to create an AutoType for it - to avoid making the parameter pack part of AutoType, and improve diagnostics slightly for decltype(auto)
3) address capturing and function to pointer conversion.
This revision is bullet 2 above.
Thanks!
Hi rsmith, doug.gregor, eli.friedman,
http://llvm-reviews.chandlerc.com/D1174
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1174?vs=4456&id=4475#toc
Files:
include/clang/AST/ASTContext.h
include/clang/AST/ASTLambda.h
include/clang/AST/DeclCXX.h
include/clang/AST/ExprCXX.h
include/clang/AST/Type.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/DeclSpec.h
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/AST/ASTContext.cpp
lib/AST/ASTDumper.cpp
lib/AST/ASTImporter.cpp
lib/AST/DeclCXX.cpp
lib/AST/ExprCXX.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExprCXX.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p3-generic-lambda-1y.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p4-1y.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p4.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1174.9.patch
Type: text/x-patch
Size: 79470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130925/46ad8134/attachment.bin>
More information about the cfe-commits
mailing list