NFC: Inline handling of DependentSizedArrayType
authorStephen Kelly <steveire@gmail.com>
Wed, 5 Dec 2018 20:34:07 +0000 (20:34 +0000)
committerStephen Kelly <steveire@gmail.com>
Wed, 5 Dec 2018 20:34:07 +0000 (20:34 +0000)
commitec42aa036c19b0a161d2d9c0eb6b8e5a75e3ed62
treec7e2102487635b69c9d4c785a193c162dd142396
parent9f358871d52baa9115e44b68fa53219332a89428
NFC: Inline handling of DependentSizedArrayType

Summary:
Re-order handling of getElementType and getBracketsRange. It is
necessary to perform all printing before any traversal to child nodes.

This causes no change in the output of ast-dump-array.cpp due to the way
child nodes are printed with a delay.  This new order of the code is
also the order that produces the expected output anyway.

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D55257

llvm-svn: 348409
clang/lib/AST/ASTDumper.cpp