forked from OSchip/llvm-project
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
This commit is contained in:
parent
9f358871d5
commit
ec42aa036c
|
@ -299,9 +299,15 @@ namespace {
|
|||
dumpStmt(T->getSizeExpr());
|
||||
}
|
||||
void VisitDependentSizedArrayType(const DependentSizedArrayType *T) {
|
||||
VisitArrayType(T);
|
||||
switch (T->getSizeModifier()) {
|
||||
case ArrayType::Normal: break;
|
||||
case ArrayType::Static: OS << " static"; break;
|
||||
case ArrayType::Star: OS << " *"; break;
|
||||
}
|
||||
OS << " " << T->getIndexTypeQualifiers().getAsString();
|
||||
OS << " ";
|
||||
dumpSourceRange(T->getBracketsRange());
|
||||
dumpTypeAsChild(T->getElementType());
|
||||
dumpStmt(T->getSizeExpr());
|
||||
}
|
||||
void VisitDependentSizedExtVectorType(
|
||||
|
|
Loading…
Reference in New Issue