summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorVladimír Vondruš <mosra@centrum.cz>2017-11-29 17:38:13 (GMT)
committerVladimír Vondruš <mosra@centrum.cz>2017-11-29 17:40:00 (GMT)
commit17bceb8f4580535de52d19e8cadf0d088f972bef (patch)
tree7dbf772e60b415efdc6982d3dcdb84d71dc9f0d1 /src/xmlgen.cpp
parent4f45bd20d4da7d40c793ec4c4c13558581e995ac (diff)
downloadDoxygen-17bceb8f4580535de52d19e8cadf0d088f972bef.zip
Doxygen-17bceb8f4580535de52d19e8cadf0d088f972bef.tar.gz
Doxygen-17bceb8f4580535de52d19e8cadf0d088f972bef.tar.bz2
Expose underlying enum type in the XML output.
The <type> element (used for function return type and variable type) is now reused also for underlying enum type. C++03-style enum types that don't have the underlying type specified have the <type> tag as well, but empty to indicate that the underlying type is unspecified. Added a new test case for this.
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 1b03c3b..3b81408 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -802,6 +802,13 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
t << " <argsstring>" << convertToXML(md->argsString()) << "</argsstring>" << endl;
}
+ if (md->memberType() == MemberType_Enumeration)
+ {
+ t << " <type>";
+ linkifyText(TextGeneratorXMLImpl(t),def,md->getBodyDef(),md,md->enumBaseType());
+ t << "</type>" << endl;
+ }
+
t << " <name>" << convertToXML(md->name()) << "</name>" << endl;
if (md->memberType() == MemberType_Property)