summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Elstner <danielk@openismus.com>2009-09-02 13:56:53 +0200
committerDaniel Elstner <danielk@openismus.com>2009-09-02 13:56:53 +0200
commitfddc449f8aff363d5dc706d40fee33b497ca9a39 (patch)
treee3ae35da13a30e2cbe9492fd124b04b5b98c3fbd
parent58352faf6fcec7742a23fe5acf64e1e656f57343 (diff)
downloadmm-common-fddc449f8aff363d5dc706d40fee33b497ca9a39.tar.gz
Do not extract keywords from Doxygen groups
* util/tagfile-to-devhelp2.xsl (functions): Only list members of compounds which correspond to a C++ language construct, i.e. a class or a namespace. Other Doxygen compounds like groups or files do not exist at the language level, and their names should not be used like namespace prefixes.
-rw-r--r--util/tagfile-to-devhelp2.xsl15
1 files changed, 12 insertions, 3 deletions
diff --git a/util/tagfile-to-devhelp2.xsl b/util/tagfile-to-devhelp2.xsl
index 8dd55ec..267f049 100644
--- a/util/tagfile-to-devhelp2.xsl
+++ b/util/tagfile-to-devhelp2.xsl
@@ -41,8 +41,8 @@
</sub>
</chapters>
<functions>
- <xsl:apply-templates select="tagfile/compound|tagfile/compound/member" mode="keyword">
- <xsl:sort lang="en" select="concat(../name, '::', name)"/>
+ <xsl:apply-templates select="tagfile/compound[@kind='namespace' or @kind='class' or @kind='struct']" mode="compound">
+ <xsl:sort lang="en" select="name"/>
</xsl:apply-templates>
</functions>
</book>
@@ -52,9 +52,18 @@
<sub name="{name}" link="{filename}"/>
</xsl:template>
- <xsl:template match="compound[@kind='class' or @kind='struct']" mode="keyword">
+ <xsl:template match="compound[@kind='namespace']" mode="compound">
+ <xsl:apply-templates select="member" mode="keyword">
+ <xsl:sort lang="en" select="name"/>
+ </xsl:apply-templates>
+ </xsl:template>
+ <xsl:template match="compound[@kind='class' or @kind='struct']" mode="compound">
<keyword type="struct" name="{name}" link="{filename}"/>
+ <xsl:apply-templates select="member" mode="keyword">
+ <xsl:sort lang="en" select="name"/>
+ </xsl:apply-templates>
</xsl:template>
+
<xsl:template match="member[@kind='function' or @kind='typedef']" mode="keyword">
<keyword type="{@kind}" xsl:use-attribute-sets="keyword-member"/>
</xsl:template>