summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-13 20:01:30 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-13 20:01:30 (GMT)
commit7e08dcdc7b10f9a080dd26731e7859f07392a500 (patch)
tree059bb90256d5ac09a37f441a0e8869a1fad42da9
parent735203d07ce01c587b6807122e7a220a2c89de7d (diff)
downloadDoxygen-7e08dcdc7b10f9a080dd26731e7859f07392a500.zip
Doxygen-7e08dcdc7b10f9a080dd26731e7859f07392a500.tar.gz
Doxygen-7e08dcdc7b10f9a080dd26731e7859f07392a500.tar.bz2
Avoid writing artifically created classes to the tag file
-rw-r--r--src/classdef.cpp9
-rw-r--r--src/doxygen.cpp5
2 files changed, 8 insertions, 6 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 88bc44c..3b0390f 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -2102,7 +2102,7 @@ void ClassDefImpl::writeSummaryLinks(OutputList &ol) const
void ClassDefImpl::writeTagFile(FTextStream &tagFile)
{
- if (!isLinkableInProject()) return;
+ if (!isLinkableInProject() || isArtificial()) return;
tagFile << " <compound kind=\"";
if (isFortran() && (compoundTypeString() == "type"))
tagFile << "struct";
@@ -2124,7 +2124,12 @@ void ClassDefImpl::writeTagFile(FTextStream &tagFile)
}
for (const Argument &a : m_impl->tempArgs)
{
- tagFile << " <templarg>" << convertToXML(a.name) << "</templarg>" << endl;
+ tagFile << " <templarg>" << convertToXML(a.type);
+ if (!a.name.isEmpty())
+ {
+ tagFile << " " << convertToXML(a.name);
+ }
+ tagFile << "</templarg>" << endl;
}
for (const auto &ibcd : m_impl->inherits)
{
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 3fdde9b..5f00d1d 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -4191,10 +4191,7 @@ static void findTemplateInstanceRelation(const Entry *root,
root->fileName,root->startLine,root->startColumn,templSpec,freshInstance));
if (instanceClass)
{
- if (isArtificial)
- {
- instanceClass->setArtificial(TRUE);
- }
+ instanceClass->setArtificial(TRUE);
instanceClass->setLanguage(root->lang);
if (freshInstance)