diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-03-15 12:17:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-03-15 12:17:14 (GMT) |
commit | 95375152974fa7e0e4d4cec7007d942dd5e9615e (patch) | |
tree | aa6142b658f2d43ff808b290a16d42d52871b3b5 /src | |
parent | c9465bd210d8250a5439f22bf564c187cd45e968 (diff) | |
download | Doxygen-95375152974fa7e0e4d4cec7007d942dd5e9615e.zip Doxygen-95375152974fa7e0e4d4cec7007d942dd5e9615e.tar.gz Doxygen-95375152974fa7e0e4d4cec7007d942dd5e9615e.tar.bz2 |
Fixes for showing type constraint relations
Diffstat (limited to 'src')
-rw-r--r-- | src/classdef.cpp | 3 | ||||
-rw-r--r-- | src/xmlgen.cpp | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index ea6eece..d48efd0 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -2532,9 +2532,10 @@ bool ClassDef::hasExamples() const void ClassDef::addTypeConstraint(const QCString &typeConstraint,const QCString &type) { + //printf("addTypeContraint(%s,%s)\n",type.data(),typeConstraint.data()); static bool hideUndocRelation = Config_getBool("HIDE_UNDOC_RELATIONS"); if (typeConstraint.isEmpty() || type.isEmpty()) return; - ClassDef *cd = getClass(typeConstraint); + ClassDef *cd = getResolvedClass(this,getFileDef(),typeConstraint); if (cd==0 && !hideUndocRelation) { cd = new ClassDef(getDefFileName(),getDefLine(),getDefColumn(),typeConstraint,ClassDef::Class); diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index c2eddd5..215b88a 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -394,6 +394,12 @@ static void writeTemplateArgumentList(ArgumentList *al, linkifyText(TextGeneratorXMLImpl(t),scope,fileScope,0,a->defval); t << "</defval>" << endl; } + if (!a->typeConstraint.isEmpty()) + { + t << indentStr << " <typeconstraint>"; + linkifyText(TextGeneratorXMLImpl(t),scope,fileScope,0,a->typeConstraint); + t << "</typeconstraint>" << endl; + } t << indentStr << " </param>" << endl; } t << indentStr << "</templateparamlist>" << endl; |