[PATCH] D23329: [NFC] Reducing allocations in AST attributes

Eugene via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 12 21:41:44 PDT 2016

kevgs updated this revision to Diff 67955.
kevgs added a comment.

clang-formatted + dead code removed



Index: include/clang/AST/AttrIterator.h
--- include/clang/AST/AttrIterator.h
+++ include/clang/AST/AttrIterator.h
@@ -39,8 +39,7 @@
 namespace clang {
 /// AttrVec - A vector of Attr, which is how they are stored on the AST.
-typedef SmallVector<Attr*, 2> AttrVec;
-typedef SmallVector<const Attr*, 2> ConstAttrVec;
+typedef SmallVector<Attr *, 4> AttrVec;
 /// specific_attr_iterator - Iterates over a subrange of an AttrVec, only
 /// providing attributes that are of a specific type.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23329.67955.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160813/be1c9f2d/attachment.bin>

More information about the cfe-commits mailing list