This is an archive of the discontinued LLVM Phabricator instance.

[AST] Make RecursiveASTVisitor visit TemplateDecls in source order
ClosedPublic

Authored by johannes on Sep 9 2017, 3:45 AM.

Details

Summary

This causes template arguments to be traversed before the templated
declaration, which is useful for clients that expect the nodes in
the same order as they are in the source code. Additionally, there
seems to be no good reason not to do so.

This was moved here from LexicallyOrderedRecursiveASTVisitor. The tests
still reside in LexicallyOrderedRecursiveASTVisitorTest.cpp under
VisitTemplateDecls.

Diff Detail

Repository
rL LLVM

Event Timeline

johannes created this revision.Sep 9 2017, 3:45 AM
klimek accepted this revision.Sep 11 2017, 12:48 AM
klimek added a subscriber: klimek.

LG

This revision is now accepted and ready to land.Sep 11 2017, 12:48 AM
This revision was automatically updated to reflect the committed changes.