From 21f0ca0085c034a37df07c1ab690472bada0a1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 28 Nov 2017 01:04:37 +0100 Subject: Provide template parameters also for type aliases in the XML output. Until now, probably due to C++03 assumptions, typedefs and type aliases skipped printing of the template parameter specifications to the XML output. That's now fixed, so the following type alias will properly contain in the XML output: template using Vec = std::vector; Added also a test case that verifies this. --- src/xmlgen.cpp | 5 +---- testing/067/067__using_8cpp.xml | 32 ++++++++++++++++++++++++++++++++ testing/067_using.cpp | 7 +++++++ 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 testing/067/067__using_8cpp.xml create mode 100644 testing/067_using.cpp diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index 1b03c3b..da795e9 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -789,10 +789,7 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De md->memberType()!=MemberType_Enumeration ) { - if (md->memberType()!=MemberType_Typedef) - { - writeMemberTemplateLists(md,t); - } + writeMemberTemplateLists(md,t); QCString typeStr = md->typeString(); //replaceAnonymousScopes(md->typeString()); stripQualifiers(typeStr); t << " "; diff --git a/testing/067/067__using_8cpp.xml b/testing/067/067__using_8cpp.xml new file mode 100644 index 0000000..c278161 --- /dev/null +++ b/testing/067/067__using_8cpp.xml @@ -0,0 +1,32 @@ + + + + 067_using.cpp + + + + + class T + + + std::vector< T > + using Vec = std::vector<T> + + Vec + + A vector. + + + + + + + + + + + + + + + diff --git a/testing/067_using.cpp b/testing/067_using.cpp new file mode 100644 index 0000000..eb2f5cc --- /dev/null +++ b/testing/067_using.cpp @@ -0,0 +1,7 @@ +// objective: test template parameters for a type alias +// check: 067__using_8cpp.xml + +/** \file */ + +/** @brief A vector */ +template using Vec = std::vector; -- cgit v0.12