Skip to content

Commit ef46eb0

Browse files
committed
Transform: Support QtCreator with libc++ (case 20)
libc++ puts the contents of std:: into an inline namespace.
1 parent 98ccfa3 commit ef46eb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devhelp2qch.xsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
<xsl:template match="devhelp:keyword">
7676
<xsl:if test="@name != ''">
7777
<keyword name="{@name}" id="{@name}" ref="{@link}" />
78+
<!-- Add an additional id for libc++ users -->
79+
<xsl:if test="starts-with(@name, 'std::')">
80+
<keyword name="{@name}" id="{concat('std::___LIBCPP_ABI_VERSION::', substring(@name, 6))}" ref="{@link}" />
81+
</xsl:if>
7882
</xsl:if>
7983
</xsl:template>
8084

0 commit comments

Comments
 (0)