VirtualBox

Changeset 79737 in vbox


Ignore:
Timestamp:
Jul 12, 2019 1:56:01 PM (5 years ago)
Author:
vboxsync
Message:

Main/apiwrap-server.xsl: Emit proper doxygen @name groupings in headers for better copying & pasting into the implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r79049 r79737  
    8080 */
    8181
    82 /**
    83  * Copyright (C) 2010-2016 Oracle Corporation
     82/*
     83 * Copyright (C) 2010-2019 Oracle Corporation
    8484 *
    8585 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    120120
    121121</xsl:text>
    122     <xsl:value-of select="concat('class ATL_NO_VTABLE ', substring(@name, 2), 'Wrap:')"/>
     122    <xsl:value-of select="concat('class ATL_NO_VTABLE ', substring(@name, 2), 'Wrap')"/>
    123123    <xsl:text>
    124     public VirtualBoxBase,
    125 </xsl:text>
    126     <xsl:value-of select="concat('    VBOX_SCRIPTABLE_IMPL(', @name, ')')"/>
    127     <xsl:if test="count(exsl:node-set($addinterfaces)/token) > 0">
    128         <xsl:text>,</xsl:text>
    129     </xsl:if>
     124    : public VirtualBoxBase
     125</xsl:text>
     126    <xsl:value-of select="concat('    , VBOX_SCRIPTABLE_IMPL(', @name, ')')"/>
    130127    <xsl:value-of select="$G_sNewLine"/>
    131128    <xsl:for-each select="exsl:node-set($addinterfaces)/token">
    132         <xsl:value-of select="concat('    VBOX_SCRIPTABLE_IMPL(', text(), ')')"/>
    133         <xsl:if test="not(position()=last())">
    134             <xsl:text>,</xsl:text>
    135         </xsl:if>
     129        <xsl:value-of select="concat('    , VBOX_SCRIPTABLE_IMPL(', text(), ')')"/>
    136130        <xsl:value-of select="$G_sNewLine"/>
    137131    </xsl:for-each>
     
    15631557        </xsl:when>
    15641558        <xsl:when test="$pmode != 'dtrace-probes'">
    1565             <xsl:value-of select="concat($G_sNewLine, '    // ', $pmode, ' ', $name, ' properties', $G_sNewLine)"/>
     1559            <xsl:value-of select="concat($G_sNewLine, '    /** @name ', translate(substring($pmode, 1, 1), $G_lowerCase, $G_upperCase), substring($pmode,2), ' ', $name, ' properties', $G_sNewLine)"/>
     1560            <xsl:text>     * @{ */
     1561</xsl:text>
    15661562        </xsl:when>
    15671563    </xsl:choose>
     
    16151611        <xsl:otherwise><xsl:message terminate="yes">Otherwise oops in emitAttributes</xsl:message></xsl:otherwise>
    16161612    </xsl:choose>
     1613
     1614    <!-- close doxygen @name -->
     1615    <xsl:if test="($pmode != 'code') and ($pmode != 'dtrace-probes')" >
     1616            <xsl:text>    /** @} */
     1617</xsl:text>
     1618    </xsl:if>
    16171619</xsl:template>
    16181620
     
    21962198        <xsl:when test="$pmode='dtrace-probes'"/>
    21972199        <xsl:otherwise>
    2198             <xsl:value-of select="concat($G_sNewLine, '    // ', $pmode, ' ', $name, ' methods', $G_sNewLine)"/>
     2200            <xsl:value-of select="concat($G_sNewLine, '    /** @name ', translate(substring($pmode, 1, 1), $G_lowerCase, $G_upperCase), substring($pmode,2), ' ', $name, ' methods', $G_sNewLine)"/>
     2201            <xsl:text>     * @{ */
     2202</xsl:text>
    21992203        </xsl:otherwise>
    22002204    </xsl:choose>
     
    22472251        <xsl:otherwise/>
    22482252    </xsl:choose>
     2253
     2254    <!-- close doxygen @name -->
     2255    <xsl:if test="($pmode != 'code') and ($pmode != 'dtrace-probes')" >
     2256            <xsl:text>    /** @} */
     2257</xsl:text>
     2258    </xsl:if>
    22492259</xsl:template>
    22502260
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette