summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools/dump_ast_matchers.py
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2012-09-07 13:10:32 +0000
committerManuel Klimek <klimek@google.com>2012-09-07 13:10:32 +0000
commit8bad94765a94d72c40f8187654a5cc01118f7464 (patch)
treec029ab301d6b2a75e180c3fee60148847bd232cd /clang/docs/tools/dump_ast_matchers.py
parentf49d1e00707fac0f62aa94fdcb4f2ac8e6613aee (diff)
downloadbcm5719-llvm-8bad94765a94d72c40f8187654a5cc01118f7464.tar.gz
bcm5719-llvm-8bad94765a94d72c40f8187654a5cc01118f7464.zip
Introduces anchors into LibASTMatchersReference.html.
This allows linking to LibASTMatchersRefernce.html#<matcher><N>Anchor to link to the N'the declaration of a matcher and automatically expand its documentation. llvm-svn: 163386
Diffstat (limited to 'clang/docs/tools/dump_ast_matchers.py')
-rw-r--r--clang/docs/tools/dump_ast_matchers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py
index 83fc420c96f..bc5f1a64a5c 100644
--- a/clang/docs/tools/dump_ast_matchers.py
+++ b/clang/docs/tools/dump_ast_matchers.py
@@ -14,7 +14,7 @@ MATCHERS_FILE = '../../include/clang/ASTMatchers/ASTMatchers.h'
# The subsequent row contains the documentation and is hidden by default,
# becoming visible via javascript when the user clicks the matcher name.
TD_TEMPLATE="""
-<tr><td>%(result)s</td><td class="name" onclick="toggle('%(id)s')">%(name)s</td><td>%(args)s</td></tr>
+<tr><td>%(result)s</td><td class="name" onclick="toggle('%(id)s')"><a name="%(id)sAnchor">%(name)s</a></td><td>%(args)s</td></tr>
<tr><td colspan="4" class="doc" id="%(id)s"><pre>%(comment)s</pre></td></tr>
"""
OpenPOWER on IntegriCloud