summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/captured-statements.c
Commit message (Collapse)AuthorAgeFilesLines
* If capturing a variable fails, add a capture anyway (and mark itRichard Smith2019-05-281-1/+8
| | | | | | invalid) so that we can avoid repeated diagnostics for the same capture. llvm-svn: 361891
* CodeGen for CapturedStmtsBen Langmuir2013-05-091-6/+6
| | | | | | | | | | | | | | | | | EmitCapturedStmt creates a captured struct containing all of the captured variables, and then emits a call to the outlined function. This is similar in principle to EmitBlockLiteral. GenerateCapturedFunction actually produces the outlined function. It is based on GenerateBlockFunction, but is much simpler. The function type is determined by the parameters that are in the CapturedDecl. Some changes have been added to this patch that were reviewed as part of the serialization patch and moving the parameters to the captured decl. Differential Revision: http://llvm-reviews.chandlerc.com/D640 llvm-svn: 181536
* Sema for Captured StatementsTareq A. Siraj2013-04-161-0/+78
Add CapturedDecl to be the DeclContext for CapturedStmt, and perform semantic analysis. Currently captures all variables by reference. TODO: templates Author: Ben Langmuir <ben.langmuir@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D433 llvm-svn: 179618
OpenPOWER on IntegriCloud