summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2014-02-24 10:40:22 +0000
committerManuel Klimek <klimek@google.com>2014-02-24 10:40:22 +0000
commit0389269a7d038b7399aa50272d4cb43a0e1a8b26 (patch)
tree9fe1456c078c5c081ca155dbc4b9e745c53add5b /clang/docs/tools
parent8f2d3f0f90fe6abc8a65dddac473ca5e17cdd34d (diff)
downloadbcm5719-llvm-0389269a7d038b7399aa50272d4cb43a0e1a8b26.tar.gz
bcm5719-llvm-0389269a7d038b7399aa50272d4cb43a0e1a8b26.zip
Fix AST matcher documentation for overloaded matchers.
Before this patch we would only use the fist occurance of a matcher function in the documentation, for example leaving out hasType(Matcher<QualType>). llvm-svn: 202019
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/dump_ast_matchers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py
index 7f8751ea654..c04df8573a5 100644
--- a/clang/docs/tools/dump_ast_matchers.py
+++ b/clang/docs/tools/dump_ast_matchers.py
@@ -119,9 +119,9 @@ def add_matcher(result_type, name, args, comment, is_dyncast=False):
# arguments.
elif ('Matcher<' not in args or
name in ['allOf', 'anyOf', 'anything', 'unless']):
- narrowing_matchers[result_type + name] = matcher_html
+ narrowing_matchers[result_type + name + esc(args)] = matcher_html
else:
- traversal_matchers[result_type + name] = matcher_html
+ traversal_matchers[result_type + name + esc(args)] = matcher_html
def act_on_decl(declaration, comment, allowed_types):
"""Parse the matcher out of the given declaration and comment.
OpenPOWER on IntegriCloud