[cfe-commits] [PATCH] Add nested structs to the output of -ast-print-xml

Martin Vejnár avakar at ratatanek.cz
Thu Sep 30 04:26:44 PDT 2010


On Wed, 29 Sep 2010 10:49:44 -0700, Douglas Gregor <dgregor at apple.com>
wrote:
> It's not harmful, so it's okay if it stays in. Hopefully, to be replaced
> with what I described below :)

Yes, using decls_begin/decls_end is the way to go, I don't know what I was
thinking. :) The new patch is attached.

>> On Wed, Sep 29, 2010 at 8:56 AM, Douglas Gregor <dgregor at apple.com>
wrote:
>>> It seems like addSubNodes() for a RecordDecl should just visit all
>>> of the nodes in the decls_begin()/decls_end(), printing everything
>>> (which will include fields, member functions, static data members,
>>> etc.). Of course, it could skip "implicit" declarations, so we don't
>>> have to see the injected-class-name.
-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all_nested_decls_xml.patch
Type: application/octet-stream
Size: 1219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100930/888fd431/attachment.obj>


More information about the cfe-commits mailing list