Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D56641
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351116
91177308-0d34-0410-b5e6-
96231b3b80d8
void Visit(const Type *T);
+ void Visit(QualType T);
+
void dumpPointer(const void *Ptr);
void dumpLocation(SourceLocation Loc);
void dumpSourceRange(SourceRange R);
return dumpTypeAsChild(SQT.Ty);
dumpChild([=] {
- OS << "QualType";
- NodeDumper.dumpPointer(T.getAsOpaquePtr());
- OS << " ";
- NodeDumper.dumpBareType(T, false);
- OS << " " << T.split().Quals.getAsString();
+ NodeDumper.Visit(T);
dumpTypeAsChild(T.split().Ty);
});
}
OS << " imported";
}
+void TextNodeDumper::Visit(QualType T) {
+ OS << "QualType";
+ dumpPointer(T.getAsOpaquePtr());
+ OS << " ";
+ dumpBareType(T, false);
+ OS << " " << T.split().Quals.getAsString();
+}
+
void TextNodeDumper::dumpPointer(const void *Ptr) {
ColorScope Color(OS, ShowColors, AddressColor);
OS << ' ' << Ptr;