summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/ScopeInfo.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-01-06 03:05:34 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-01-06 03:05:34 +0000
commit906a7e1c0f272f7e539c82dda01f4644031ce637 (patch)
tree6b517623085dbc5a155603060b68d458e1211a74 /include/clang/Sema/ScopeInfo.h
parent2f0e88a87cea6d21429d9f5c0b1c53f24caf77cf (diff)
More lambda work. Fixes a minor bug Richard pointed out, makes lookup for lambda parameters work correctly, recording more information into the AST.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/ScopeInfo.h')
-rw-r--r--include/clang/Sema/ScopeInfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Sema/ScopeInfo.h b/include/clang/Sema/ScopeInfo.h
index caa4c1a6c8..1edeff5b43 100644
--- a/include/clang/Sema/ScopeInfo.h
+++ b/include/clang/Sema/ScopeInfo.h
@@ -180,9 +180,15 @@ public:
/// \brief The field associated with the captured 'this' pointer.
FieldDecl *ThisCapture;
+ /// \brief - Whether the return type of the lambda is implicit
+ bool HasImplicitReturnType;
+
+ /// ReturnType - The return type of the lambda, or null if unknown.
+ QualType ReturnType;
+
LambdaScopeInfo(DiagnosticsEngine &Diag, CXXRecordDecl *Lambda)
: FunctionScopeInfo(Diag), Lambda(Lambda),
- NumExplicitCaptures(0), ThisCapture(0)
+ NumExplicitCaptures(0), ThisCapture(0) , HasImplicitReturnType(false)
{
Kind = SK_Lambda;
}