Only store the needed data in IfStmt. This cuts the size of IfStmt
by up to 3 pointers + 1 SourceLocation. The order of the children
is intentionally kept the same even though it would be more
convenient to put the optional trailing objects last.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
To add on the issue of changing the order of the children. The more I think about
it the less it seems to be a good idea. Every test passes but I strongly suspect
that a lot of code subtly rely on this.
Comment Actions
Add a flag to the output of -ast-dump indicating
which sub-statement IfStmt is storing. This removes
the ambiguity in the output of -ast-dump and addresses
rsmith's comment in D53717.