]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/docca/include/docca/config.xsl
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / tools / docca / include / docca / config.xsl
diff --git a/ceph/src/boost/tools/docca/include/docca/config.xsl b/ceph/src/boost/tools/docca/include/docca/config.xsl
new file mode 100644 (file)
index 0000000..bb2ce8a
--- /dev/null
@@ -0,0 +1,47 @@
+<xsl:stylesheet version="3.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:d="http://github.com/vinniefalco/docca"
+  exclude-result-prefixes="xs d"
+  expand-text="yes">
+
+<!-- CONFIG_TEMPLATE -->
+
+  <xsl:variable name="additional-id-replacements" as="element(replace)*">
+    <replace pattern="boost::asio::error" with=""/>
+  </xsl:variable>
+
+  <xsl:variable name="additional-type-replacements" as="element(replace)*">
+    <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/')}]
+  </xsl:template>
+
+<!-- INCLUDES_FOOT_TEMPLATE -->
+
+  <xsl:function name="d:should-ignore-compound">
+    <xsl:param name="element" as="element(compound)"/>
+    <xsl:sequence select="contains($element/name, '::detail')"/>  <!-- TODO: Confirm this should be custom and not built-in behavior -->
+  </xsl:function>
+
+  <xsl:function name="d:should-ignore-base">
+    <xsl:param name="element" as="element(basecompoundref)"/>
+    <xsl:sequence select="contains($element, '::detail')"/>  <!-- TODO: Confirm this should be custom and not built-in behavior -->
+  </xsl:function>
+
+  <xsl:function name="d:should-ignore-inner-class">
+    <xsl:param name="element" as="element(innerclass)"/>
+    <xsl:sequence select="contains($element, '_handler')"/>
+  </xsl:function>
+
+  <xsl:function name="d:should-ignore-friend">
+    <xsl:param name="element" as="element(memberdef)"/>
+    <xsl:sequence select="contains($element, '_helper')"/>
+  </xsl:function>
+
+</xsl:stylesheet>