summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-11-15 15:25:51 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-11-15 23:26:58 (GMT)
commite986e0039de21791bd1fbb1f59b13f58c4a46324 (patch)
treeff6c668e830ff39097d53f3c0a0898bf0f052b20 /src/xmlgen.cpp
parent0fea3d4ca57187f271d7580ff16f32b7ab4657df (diff)
downloadDoxygen-e986e0039de21791bd1fbb1f59b13f58c4a46324.zip
Doxygen-e986e0039de21791bd1fbb1f59b13f58c4a46324.tar.gz
Doxygen-e986e0039de21791bd1fbb1f59b13f58c4a46324.tar.bz2
Added language attribute to XML output for classes, namespaces, and files
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 01d7f9d..28da1eb 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -1251,7 +1251,8 @@ static void generateXMLForClass(ClassDef *cd,FTextStream &ti)
writeXMLHeader(t);
t << " <compounddef id=\""
<< classOutputFileBase(cd) << "\" kind=\""
- << cd->compoundTypeString() << "\" prot=\"";
+ << cd->compoundTypeString() << "\" language=\""
+ << langToString(cd->getLanguage()) << "\" prot=\"";
switch (cd->protection())
{
case Public: t << "public"; break;
@@ -1448,8 +1449,9 @@ static void generateXMLForNamespace(NamespaceDef *nd,FTextStream &ti)
//t.setEncoding(FTextStream::UnicodeUTF8);
writeXMLHeader(t);
- t << " <compounddef id=\""
- << nd->getOutputFileBase() << "\" kind=\"namespace\">" << endl;
+ t << " <compounddef id=\"" << nd->getOutputFileBase()
+ << "\" kind=\"namespace\" language=\""
+ << langToString(nd->getLanguage()) << "\">" << endl;
t << " <compoundname>";
writeXMLString(t,nd->name());
t << "</compoundname>" << endl;
@@ -1528,8 +1530,9 @@ static void generateXMLForFile(FileDef *fd,FTextStream &ti)
//t.setEncoding(FTextStream::UnicodeUTF8);
writeXMLHeader(t);
- t << " <compounddef id=\""
- << fd->getOutputFileBase() << "\" kind=\"file\">" << endl;
+ t << " <compounddef id=\"" << fd->getOutputFileBase()
+ << "\" kind=\"file\" language=\""
+ << langToString(fd->getLanguage()) << "\">" << endl;
t << " <compoundname>";
writeXMLString(t,fd->name());
t << "</compoundname>" << endl;