diff options
Diffstat (limited to 'include/clang/AST/ASTContext.h')
-rw-r--r-- | include/clang/AST/ASTContext.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 3236977030..82570f594d 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -59,6 +59,7 @@ namespace clang { class CXXRecordDecl; class Decl; class FieldDecl; + class LambdaExpr; class MangleContext; class ObjCIvarDecl; class ObjCIvarRefExpr; @@ -163,6 +164,10 @@ class ASTContext : public llvm::RefCountedBase<ASTContext> { llvm::DenseMap<const FunctionDecl*, FunctionDecl*> ClassScopeSpecializationPattern; + /// \brief Mapping from closure types to the lambda expressions that + /// create instances of them. + llvm::DenseMap<const CXXRecordDecl *, LambdaExpr *> Lambdas; + /// \brief Representation of a "canonical" template template parameter that /// is used in canonical template names. class CanonicalTemplateTemplateParm : public llvm::FoldingSetNode { @@ -358,7 +363,8 @@ class ASTContext : public llvm::RefCountedBase<ASTContext> { friend class ASTDeclReader; friend class ASTReader; friend class ASTWriter; - + friend class CXXRecordDecl; + const TargetInfo *Target; clang::PrintingPolicy PrintingPolicy; |