Output all content which is local to the FunctionDecl before traversing
to child AST nodes.
This is necessary so that all of the part which is local to the FunctionDecl can be split into a different method.
Paths
| Differential D55083
Re-arrange content in FunctionDecl dump ClosedPublic Authored by steveire on Nov 29 2018, 3:18 PM.
Details Summary Output all content which is local to the FunctionDecl before traversing This is necessary so that all of the part which is local to the FunctionDecl can be split into a different method.
Diff Detail
Event TimelineComment Actions The summary explains what it's doing, but not why it's doing it -- why is this change in behavior needed? Does this not break any tests? Btw, as we work on this refactoring, I think a good approach will be to build up the base of tests around AST dumping so that we can be explicitly aware of any behavioral changes from the patches. We have some coverage, but it doesn't look to be particularly comprehensive. I am happy to contribute some of these tests. WDYT? Comment Actions Yes, please commit your new tests for FunctionDecl dumping before this patch can go in. Comment Actions
r347994 has those tests.
Comment Actions LGTM aside from some nit cleanup.
This revision is now accepted and ready to land.Jan 15 2019, 11:57 AM Closed by commit rC351269: Re-order overrides in FunctionDecl dump (authored by steveire). · Explain WhyJan 15 2019, 2:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 177069 lib/AST/ASTDumper.cpp
test/AST/ast-dump-decl.cpp
test/AST/ast-dump-funcs.cpp
test/AST/float16.cpp
|
Can switch to const auto *