summaryrefslogtreecommitdiffstats
path: root/src/Output.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-18 19:15:40 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-24 15:37:20 (GMT)
commit25ff73764f1a54a0c3689df949f2d7e9ab41a014 (patch)
tree21a70f6c0e31c684271767b094efb6ba1f22528d /src/Output.cxx
parent5e0461f6741c5eed0ee1cf79e0517a3d9b93f3b2 (diff)
downloadCastXML-25ff73764f1a54a0c3689df949f2d7e9ab41a014.zip
CastXML-25ff73764f1a54a0c3689df949f2d7e9ab41a014.tar.gz
CastXML-25ff73764f1a54a0c3689df949f2d7e9ab41a014.tar.bz2
Output: Report Typedef underlying type
When a typedef is "moded" the underlying type may be different from the named type. Report the real type.
Diffstat (limited to 'src/Output.cxx')
-rw-r--r--src/Output.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Output.cxx b/src/Output.cxx
index 0cee6ca..dab1230 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -1169,7 +1169,7 @@ void ASTVisitor::OutputTypedefDecl(clang::TypedefDecl const* d,
this->OS << " <Typedef";
this->PrintIdAttribute(dn);
this->PrintNameAttribute(d->getName().str());
- this->PrintTypeAttribute(d->getTypeSourceInfo()->getType(), dn->Complete);
+ this->PrintTypeAttribute(d->getUnderlyingType(), dn->Complete);
this->PrintContextAttribute(d);
this->PrintLocationAttribute(d);
this->OS << "/>\n";