-
- Downloads
First pass of semantic analysis for init-captures: check the initializer, build
a FieldDecl from it, and propagate both into the closure type and the LambdaExpr. You can't do much useful with them yet -- you can't use them within the body of the lambda, because we don't have a representation for "the this of the lambda, not the this of the enclosing context". We also don't have support or a representation for a nested capture of an init-capture yet, which was intended to work despite not being allowed by the current standard wording. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181985 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/DeclCXX.h 2 additions, 0 deletionsinclude/clang/AST/DeclCXX.h
- include/clang/AST/ExprCXX.h 36 additions, 11 deletionsinclude/clang/AST/ExprCXX.h
- include/clang/AST/RecursiveASTVisitor.h 6 additions, 3 deletionsinclude/clang/AST/RecursiveASTVisitor.h
- include/clang/Basic/DiagnosticSemaKinds.td 10 additions, 2 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- include/clang/Basic/Lambda.h 2 additions, 1 deletioninclude/clang/Basic/Lambda.h
- include/clang/Sema/ScopeInfo.h 75 additions, 37 deletionsinclude/clang/Sema/ScopeInfo.h
- include/clang/Sema/Sema.h 5 additions, 0 deletionsinclude/clang/Sema/Sema.h
- lib/AST/DeclCXX.cpp 3 additions, 5 deletionslib/AST/DeclCXX.cpp
- lib/AST/ExprCXX.cpp 16 additions, 4 deletionslib/AST/ExprCXX.cpp
- lib/AST/Stmt.cpp 1 addition, 1 deletionlib/AST/Stmt.cpp
- lib/AST/StmtPrinter.cpp 7 additions, 0 deletionslib/AST/StmtPrinter.cpp
- lib/AST/StmtProfile.cpp 9 additions, 1 deletionlib/AST/StmtProfile.cpp
- lib/Parse/ParseExprCXX.cpp 2 additions, 4 deletionslib/Parse/ParseExprCXX.cpp
- lib/Sema/SemaExpr.cpp 5 additions, 4 deletionslib/Sema/SemaExpr.cpp
- lib/Sema/SemaLambda.cpp 136 additions, 24 deletionslib/Sema/SemaLambda.cpp
- lib/Sema/SemaStmt.cpp 2 additions, 2 deletionslib/Sema/SemaStmt.cpp
- lib/Sema/SemaTemplateVariadic.cpp 6 additions, 2 deletionslib/Sema/SemaTemplateVariadic.cpp
- lib/Sema/TreeTransform.h 40 additions, 3 deletionslib/Sema/TreeTransform.h
- lib/Serialization/ASTReaderDecl.cpp 16 additions, 3 deletionslib/Serialization/ASTReaderDecl.cpp
- lib/Serialization/ASTWriter.cpp 19 additions, 6 deletionslib/Serialization/ASTWriter.cpp
Loading
Please register or sign in to comment