summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Negreanu <groleo@gmail.com>2015-04-17 07:40:39 (GMT)
committerAdrian Negreanu <groleo@gmail.com>2015-04-17 07:42:28 (GMT)
commit29ae707794042a97412eaa137fa7b30f2367294d (patch)
treece78d36e352c5ca48ca018d6a23652d8ef26b4b4
parent4fef5e6a61658c7eb0ce9c20517571e21227bc60 (diff)
downloadDoxygen-29ae707794042a97412eaa137fa7b30f2367294d.zip
Doxygen-29ae707794042a97412eaa137fa7b30f2367294d.tar.gz
Doxygen-29ae707794042a97412eaa137fa7b30f2367294d.tar.bz2
xml: use STRIP_FROM_PATH on @file attributes.
-rw-r--r--src/xmlgen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 215b88a..bdb0d0e 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -978,7 +978,7 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
if (md->getDefLine()!=-1)
{
t << " <location file=\""
- << md->getDefFileName() << "\" line=\""
+ << stripFromPath(md->getDefFileName()) << "\" line=\""
<< md->getDefLine() << "\"" << " column=\""
<< md->getDefColumn() << "\"" ;
if (md->getStartBodyLine()!=-1)
@@ -1404,7 +1404,7 @@ static void generateXMLForClass(ClassDef *cd,FTextStream &ti)
t << " </collaborationgraph>" << endl;
}
t << " <location file=\""
- << cd->getDefFileName() << "\" line=\""
+ << stripFromPath(cd->getDefFileName()) << "\" line=\""
<< cd->getDefLine() << "\"" << " column=\""
<< cd->getDefColumn() << "\"" ;
if (cd->getStartBodyLine()!=-1)
@@ -1492,7 +1492,7 @@ static void generateXMLForNamespace(NamespaceDef *nd,FTextStream &ti)
writeXMLDocBlock(t,nd->docFile(),nd->docLine(),nd,0,nd->documentation());
t << " </detaileddescription>" << endl;
t << " <location file=\""
- << nd->getDefFileName() << "\" line=\""
+ << stripFromPath(nd->getDefFileName()) << "\" line=\""
<< nd->getDefLine() << "\"" << " column=\""
<< nd->getDefColumn() << "\"/>" << endl ;
t << " </compounddef>" << endl;
@@ -1634,7 +1634,7 @@ static void generateXMLForFile(FileDef *fd,FTextStream &ti)
writeXMLCodeBlock(t,fd);
t << " </programlisting>" << endl;
}
- t << " <location file=\"" << fd->getDefFileName() << "\"/>" << endl;
+ t << " <location file=\"" << stripFromPath(fd->getDefFileName()) << "\"/>" << endl;
t << " </compounddef>" << endl;
t << "</doxygen>" << endl;
@@ -1748,7 +1748,7 @@ static void generateXMLForDir(DirDef *dd,FTextStream &ti)
t << " <detaileddescription>" << endl;
writeXMLDocBlock(t,dd->docFile(),dd->docLine(),dd,0,dd->documentation());
t << " </detaileddescription>" << endl;
- t << " <location file=\"" << dd->name() << "\"/>" << endl;
+ t << " <location file=\"" << stripFromPath(dd->name()) << "\"/>" << endl;
t << " </compounddef>" << endl;
t << "</doxygen>" << endl;