diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-07 10:09:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-07 10:09:13 +0000 |
commit | e31e606ff34aea7d248acb4fd3e23383860383e2 (patch) | |
tree | 3c7d70e325d2dc894a28b3435315719005a96dac /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | 8392a47174973c3ad8cc1c123364e28d4a4fad0b (diff) | |
download | bcm5719-llvm-e31e606ff34aea7d248acb4fd3e23383860383e2.tar.gz bcm5719-llvm-e31e606ff34aea7d248acb4fd3e23383860383e2.zip |
Introduce basic ASTs for lambda expressions. This covers:
- Capturing variables by-reference and by-copy within a lambda
- The representation of lambda captures
- The creation of the non-static data members in the lambda class
that store the captured variables
- The initialization of the non-static data members from the
captured variables
- Pretty-printing lambda expressions
There are a number of FIXMEs, both explicit and implied, including:
- Creating a field for a capture of 'this'
- Improved diagnostics for initialization failures when capturing
variables by copy
- Dealing with temporaries created during said initialization
- Template instantiation
- AST (de-)serialization
- Binding and returning the lambda expression; turning it into a
proper temporary
- Lots and lots of semantic constraints
- Parameter pack captures
llvm-svn: 149977
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 5087ae1d338..9e5d6a90af9 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -486,6 +486,7 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, case Stmt::SubstNonTypeTemplateParmPackExprClass: case Stmt::SEHTryStmtClass: case Stmt::SEHExceptStmtClass: + case Stmt::LambdaExprClass: case Stmt::SEHFinallyStmtClass: { const ExplodedNode *node = Bldr.generateNode(S, Pred, Pred->getState()); Engine.addAbortedBlock(node, currentBuilderContext->getBlock()); |