summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-08-14 11:47:51 +0000
committerManuel Klimek <klimek@google.com>2015-08-14 11:47:51 +0000
commit5d093286f0f489e79c3849cb4c76564de3ed45be (patch)
tree8de755480212df374038c5f8cc5837ac810a7b64 /clang/docs/tools
parent87405c7f669180a9c39a58b0814580165ffe9eba (diff)
downloadbcm5719-llvm-5d093286f0f489e79c3849cb4c76564de3ed45be.tar.gz
bcm5719-llvm-5d093286f0f489e79c3849cb4c76564de3ed45be.zip
Fix AST matcher documentation.
Fix a bug in the matcher docs where callExpr(on(...)) was in the examples, but didn't work (on() only works for memberCallExpr). Fix a bug in the doc dump script that was introduced in r231575 when removing a regexp capture without adapting the code that uses the captures. llvm-svn: 245040
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/dump_ast_matchers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py
index 1e1fd3c9d69..5812f86e6f4 100644
--- a/clang/docs/tools/dump_ast_matchers.py
+++ b/clang/docs/tools/dump_ast_matchers.py
@@ -166,7 +166,7 @@ def act_on_decl(declaration, comment, allowed_types):
\s*AST_POLYMORPHIC_SUPPORTED_TYPES\(([^)]*)\)
\)\s*;\s*$""", declaration, flags=re.X)
if m:
- loc, name, n_results, results = m.groups()[0:4]
+ loc, name, results = m.groups()[0:3]
result_types = [r.strip() for r in results.split(',')]
comment_result_types = extract_result_types(comment)
@@ -191,8 +191,8 @@ def act_on_decl(declaration, comment, allowed_types):
\)\s*{\s*$""", declaration, flags=re.X)
if m:
- p, n, name, n_results, results = m.groups()[0:5]
- args = m.groups()[5:]
+ p, n, name, results = m.groups()[0:4]
+ args = m.groups()[4:]
result_types = [r.strip() for r in results.split(',')]
if allowed_types and allowed_types != result_types:
raise Exception('Inconsistent documentation for: %s' % name)
OpenPOWER on IntegriCloud