[PATCH] Tune capturing of init-captures in non-generic lambdas
Faisal Vali
faisalv at yahoo.com
Sat Nov 9 20:33:33 PST 2013
As per Richard's request:
- separated the initialization of the init-capture from the creation of the variable
- dropped the CurLambdaInitCapture kludge to avoid diagnosing an unexpanded pack prematurely
With this patch - init-captures should play nice with generic lambdas.
Thanks!
Hi rsmith, doug.gregor,
http://llvm-reviews.chandlerc.com/D2092
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2092?vs=5327&id=5433#toc
Files:
include/clang/Sema/DeclSpec.h
include/clang/Sema/Initialization.h
include/clang/Sema/Sema.h
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaAccess.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/TreeTransform.h
test/SemaCXX/cxx1y-init-captures.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2092.2.patch
Type: text/x-patch
Size: 30094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131109/1b6397fc/attachment.bin>
More information about the cfe-commits
mailing list