]> granicus.if.org Git - clang/commit
Sema for Captured Statements
authorTareq A. Siraj <tareq.a.sriaj@intel.com>
Tue, 16 Apr 2013 19:37:38 +0000 (19:37 +0000)
committerTareq A. Siraj <tareq.a.sriaj@intel.com>
Tue, 16 Apr 2013 19:37:38 +0000 (19:37 +0000)
commit6afcf8875d4e447645cd7bf3733dd8e2eb8455dc
tree492ea5c7e442ea915d1f9feeafc8b24624942d96
parent596eea7cc26979c952a0b177d024787a99b299df
Sema for Captured Statements

Add CapturedDecl to be the DeclContext for CapturedStmt, and perform semantic
analysis. Currently captures all variables by reference.

TODO: templates

Author: Ben Langmuir <ben.langmuir@intel.com>

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179618 91177308-0d34-0410-b5e6-96231b3b80d8
29 files changed:
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/Stmt.h
include/clang/Basic/DeclNodes.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
include/clang/Serialization/ASTBitCodes.h
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp
lib/AST/Stmt.cpp
lib/AST/StmtPrinter.cpp
lib/CodeGen/CGDecl.cpp
lib/Frontend/PrintPreprocessedOutput.cpp
lib/Parse/ParsePragma.cpp
lib/Sema/ScopeInfo.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaStmt.cpp
lib/Serialization/ASTCommon.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Sema/captured-statements.c [new file with mode: 0644]
test/SemaCXX/captured-statements.cpp [new file with mode: 0644]
tools/libclang/CIndex.cpp
tools/libclang/RecursiveASTVisitor.h