[PATCH] D13976: [AST] Store Decl* and Stmt* directly into the ParentMap.

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 04:19:20 PDT 2015


klimek accepted this revision.
klimek added a comment.
This revision is now accepted and ready to land.

lg


================
Comment at: include/clang/AST/ASTContext.h:463
@@ +462,3 @@
+  class DynTypedNodeList {
+    typedef ast_type_traits::DynTypedNode DynTypedNode;
+    typedef ArrayRef<DynTypedNode> ARef;
----------------
I think "using" is clearer.

================
Comment at: include/clang/AST/ASTContext.h:464
@@ +463,3 @@
+    typedef ast_type_traits::DynTypedNode DynTypedNode;
+    typedef ArrayRef<DynTypedNode> ARef;
+    llvm::AlignedCharArrayUnion<ast_type_traits::DynTypedNode, ARef> Storage;
----------------
Show me what ArrayRef<DynTypedNode> looks like written out below :)


http://reviews.llvm.org/D13976





More information about the cfe-commits mailing list