[cfe-dev] Criticism over a clang tool to reorder fields on constructor declarations
Philip Craig
philipjcraig at gmail.com
Sun Aug 19 18:25:25 PDT 2012
On Mon, Aug 20, 2012 at 11:08 AM, Philip Craig <philipjcraig at gmail.com> wrote:
> On Mon, Aug 20, 2012 at 10:31 AM, Victor Vicente de Carvalho
> <victor.v.carvalho at gmail.com> wrote:
>> I've just tried to dump the construct xml using clang -dump-ast-xml, and
>> that's what I've got:
>
> That uses DumpXML.cpp, which only has a stub for CXXCtorInitializer,
> so it won't show them. I'm using a tool based on RecursiveASTVisitor
> to dump it instead.
Try clang -ast-dump instead. It does show all of the
CXXCtorInitializer (in a partially pretty-printed form). And you can
see by changing the member order that the initializer order also
changes.
More information about the cfe-dev
mailing list