Skip to content

Commit

Permalink
Prevent friend structs from appearing in the docs:
Browse files Browse the repository at this point in the history
fix #48, fix #54, close #56

Also, move $include-private-members definition to project-specific config file.
  • Loading branch information
evanlenz authored and vinniefalco committed Nov 17, 2020
1 parent 22d2ba9 commit 36187e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/xsl/config.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<xsl:variable name="doc-ref" select="'docca.ref'"/>
<xsl:variable name="doc-ns" select="'example'"/>
<xsl:variable name="debug" select="0"/>
<xsl:variable name="private" select="0"/>
<xsl:variable name="include-private-members" select="false()"/>
<!-- End Variables -->
2 changes: 1 addition & 1 deletion include/docca/base-stage1.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
| innerclass[@prot eq 'public'][not(d:should-ignore-inner-class(.))]"
tunnel="yes"/>
<xsl:with-param name="friends"
select="sectiondef[@kind eq 'friend']/memberdef[not(type eq 'friend class')]
select="sectiondef[@kind eq 'friend']/memberdef[not(type = ('friend class','friend struct'))]
[not(d:should-ignore-friend(.))]"
tunnel="yes"/>
</xsl:next-match>
Expand Down
2 changes: 0 additions & 2 deletions include/docca/config.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<replace pattern="BOOST_ASIO_DECL ?(.*)" with="$1"/>
</xsl:variable>

<xsl:variable name="include-private-members" select="false()"/>

<!-- TODO: refactor the stage-two-specific rules into a separate module that can't intefere with stage one -->
<xsl:template mode="includes-template" match="location"
>Defined in header [include_file {substring-after(@file, 'include/')}]
Expand Down

0 comments on commit 36187e2

Please sign in to comment.