]> granicus.if.org Git - clang/commit
Split the storage of lambda information between the LambdaExpr and the
authorDouglas Gregor <dgregor@apple.com>
Mon, 13 Feb 2012 17:20:40 +0000 (17:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 13 Feb 2012 17:20:40 +0000 (17:20 +0000)
commit7ae282fde0a12635893931ebf31b35b0d5d5cab3
tree1760be025d78047b19cbc76822042ef8876289f7
parent9daa7bfdff7256cef693d7bf10084881bcb9253c
Split the storage of lambda information between the LambdaExpr and the
CXXRecordDecl in a way that actually makes some sense:
  - LambdaExpr contains all of the information for initializing the
  lambda object, including the capture initializers and associated
  array index variables.
  - CXXRecordDecl's LambdaDefinitionData contains the captures, which
  are needed to understand the captured variable references in the
  body of the lambda.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150401 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
include/clang/AST/ExprCXX.h
lib/AST/DeclCXX.cpp
lib/AST/ExprCXX.cpp