diff options
author | Brad King <brad.king@kitware.com> | 2017-09-28 12:26:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-28 12:26:46 (GMT) |
commit | 98e2fb964f7e6d23d1b4ea7674f0f83d2b049fcc (patch) | |
tree | ac0dfb6c435ad4456846eec85bd883ae68c4cf50 /src | |
parent | bbe3117a26ad11ba74a8f2c3f0a38bf3ef9864bb (diff) | |
download | CastXML-98e2fb964f7e6d23d1b4ea7674f0f83d2b049fcc.zip CastXML-98e2fb964f7e6d23d1b4ea7674f0f83d2b049fcc.tar.gz CastXML-98e2fb964f7e6d23d1b4ea7674f0f83d2b049fcc.tar.bz2 |
Output: Add size and align attributes to ReferenceType
These were included by gccxml, and they make sense for a reference
type because its ABI is like a pointer type.
Suggested-by: todoooo@users.noreply.github.com
Issue: #89
Diffstat (limited to 'src')
-rw-r--r-- | src/Output.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Output.cxx b/src/Output.cxx index 1c820d6..50eb0e8 100644 --- a/src/Output.cxx +++ b/src/Output.cxx @@ -2113,6 +2113,7 @@ void ASTVisitor::OutputLValueReferenceType(clang::LValueReferenceType const* t, this->OS << " <ReferenceType"; this->PrintIdAttribute(dn); this->PrintTypeAttribute(t->getPointeeType(), false); + this->PrintABIAttributes(this->CTX.getTypeInfo(t)); this->OS << "/>\n"; } @@ -2177,14 +2178,14 @@ void ASTVisitor::OutputStartXMLTags() // Start dump with castxml-compatible format. /* clang-format off */ this->OS << - "<CastXML format=\"" << Opts.CastXmlEpicFormatVersion << ".1.0\">\n" + "<CastXML format=\"" << Opts.CastXmlEpicFormatVersion << ".1.1\">\n" ; /* clang-format on */ } else if (this->Opts.GccXml) { // Start dump with gccxml-compatible format (legacy). /* clang-format off */ this->OS << - "<GCC_XML version=\"0.9.0\" cvs_revision=\"1.140\">\n" + "<GCC_XML version=\"0.9.0\" cvs_revision=\"1.141\">\n" ; /* clang-format on */ } |