]> granicus.if.org Git - clang/commit
Small CapturedStmt improvements
authorBen Langmuir <ben.langmuir@intel.com>
Mon, 29 Apr 2013 13:32:41 +0000 (13:32 +0000)
committerBen Langmuir <ben.langmuir@intel.com>
Mon, 29 Apr 2013 13:32:41 +0000 (13:32 +0000)
commit3a2f91280a49f4747063f983dc6a3296bd9359d2
treed86bfcc8af07e788143b255b8c3b7c81fbf998c0
parenta0152d4e8a602c71ca403172ba0fd025a0b353ca
Small CapturedStmt improvements

Add a CapturedStmt.h similar to Lambda.h to reduce the typing required to get
to the CapturedRegionKind enum. This also allows codegen to access this enum
without including Sema/ScopeInfo.h.

Also removes some duplicated code for capturing 'this' between CapturedStmt and
Lambda.

Differential Revision: http://llvm-reviews.chandlerc.com/D712

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180710 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h
include/clang/Basic/CapturedStmt.h [new file with mode: 0644]
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Parse/ParsePragma.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaStmt.cpp