File tree Expand file tree Collapse file tree 2 files changed +314
-305
lines changed Expand file tree Collapse file tree 2 files changed +314
-305
lines changed Original file line number Diff line number Diff line change @@ -1892,6 +1892,11 @@ void TextNodeDumper::VisitFunctionDecl(const FunctionDecl *D) {
1892
1892
// ParmVarDecls yet.
1893
1893
if (!D->param_empty () && !D->param_begin ())
1894
1894
OS << " <<<NULL params x " << D->getNumParams () << " >>>" ;
1895
+
1896
+ if (const auto *Instance = D->getInstantiatedFromMemberFunction ()) {
1897
+ OS << " instantiated_from" ;
1898
+ dumpPointer (Instance);
1899
+ }
1895
1900
}
1896
1901
1897
1902
void TextNodeDumper::VisitLifetimeExtendedTemporaryDecl (
@@ -2107,6 +2112,10 @@ void TextNodeDumper::VisitTypeAliasTemplateDecl(
2107
2112
2108
2113
void TextNodeDumper::VisitCXXRecordDecl (const CXXRecordDecl *D) {
2109
2114
VisitRecordDecl (D);
2115
+ if (const auto *Instance = D->getInstantiatedFromMemberClass ()) {
2116
+ OS << " instantiated_from" ;
2117
+ dumpPointer (Instance);
2118
+ }
2110
2119
if (const auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(D))
2111
2120
dumpTemplateSpecializationKind (CTSD->getSpecializationKind ());
2112
2121
You can’t perform that action at this time.
0 commit comments