[cfe-commits] [PATCH] Utilize the indents in -ast-dump to draw structural information
Philip Craig
philipjcraig at gmail.com
Thu Jan 24 20:05:48 PST 2013
LGTM, but you probably need someone else to review it.
================
Comment at: lib/AST/ASTDumper.cpp:541
@@ -445,1 +540,3 @@
+ setMoreChildren(HasDeclContext);
+ if (HasAttrs) {
for (AttrVec::const_iterator I = D->getAttrs().begin(),
----------------
Richard Trieu wrote:
> Philip Craig wrote:
> > I think this test is some code I forgot to delete. The iterator check in the for loop is enough, so no need for this or the hasAttrs() call above.
> I found that hasAttrs() is required. getAttrs() asserts when there is no attrs.
Ah yes, it would also need to change to use attr_begin(). Up to you whether you do that.
http://llvm-reviews.chandlerc.com/D281
More information about the cfe-commits
mailing list