r194188 - This patch implements capturing of variables within generic lambdas.
Amara Emerson
amara.emerson at arm.com
Thu Nov 7 08:37:28 PST 2013
Hi Faisal,
+void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl
*&VD, Expr *&E) {
+ assert((Idx >= 0 && Idx < getNumPotentialVariableCaptures()) &&
+ "Index of potential capture must be within 0 to less than the "
+ "number of captures!");
Idx will always be >= 0 since it's unsigned. Compiler warning flagged this
up.
Cheers,
Amara
More information about the cfe-commits
mailing list