summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/ScopeInfo.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-08 20:17:14 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-08 20:17:14 +0000
commit76e3da57b0e8cf72d221f44d54566ef206341668 (patch)
tree50e02b99899599b547dfa8cb0b70fb5390a1ea2f /include/clang/Sema/ScopeInfo.h
parentb319e029a6a05a76023c1bb1ce77a6d567457838 (diff)
When completing a lambda expression, make sure to check and attach the
body of the lambda to the function call operator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/ScopeInfo.h')
-rw-r--r--include/clang/Sema/ScopeInfo.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/clang/Sema/ScopeInfo.h b/include/clang/Sema/ScopeInfo.h
index d6b10720c6..d1e47b2b2f 100644
--- a/include/clang/Sema/ScopeInfo.h
+++ b/include/clang/Sema/ScopeInfo.h
@@ -280,6 +280,9 @@ public:
/// \brief The class that describes the lambda.
CXXRecordDecl *Lambda;
+ /// \brief The class that describes the lambda.
+ CXXMethodDecl *CallOperator;
+
/// \brief Source range covering the lambda introducer [...].
SourceRange IntroducerRange;
@@ -292,9 +295,10 @@ public:
/// \brief Whether the (empty) parameter list is explicit.
bool ExplicitParams;
- LambdaScopeInfo(DiagnosticsEngine &Diag, CXXRecordDecl *Lambda)
+ LambdaScopeInfo(DiagnosticsEngine &Diag, CXXRecordDecl *Lambda,
+ CXXMethodDecl *CallOperator)
: CapturingScopeInfo(Diag, ImpCap_None), Lambda(Lambda),
- NumExplicitCaptures(0), Mutable(false)
+ CallOperator(CallOperator), NumExplicitCaptures(0), Mutable(false)
{
Kind = SK_Lambda;
}