From: Manuel Klimek Date: Fri, 23 May 2014 16:58:18 +0000 (+0000) Subject: Make the ParentVector default to size 2. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c4a4a0c41a66c2e9f82e1897265583e218634dd;p=clang Make the ParentVector default to size 2. As Jordan noted, it makes more sense when we store it in the ParentMap, and doesn't really make a difference when we return it from getParents. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209530 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 7ca5da8862..b0de90c5f6 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -421,7 +421,7 @@ public: ASTMutationListener *Listener; /// \brief Contains parents of a node. - typedef llvm::SmallVector ParentVector; + typedef llvm::SmallVector ParentVector; /// \brief Maps from a node to its parents. typedef llvm::DenseMap