summaryrefslogtreecommitdiff
path: root/docs/tools
diff options
context:
space:
mode:
authorYury Gribov <y.gribov@samsung.com>2016-02-18 15:43:56 +0000
committerYury Gribov <y.gribov@samsung.com>2016-02-18 15:43:56 +0000
commit98c4d57826376988fa2dbd8eb294ee57e32f0dcd (patch)
tree4ff6b8ebd443c4f1217a0ba738c74f6a2943ea16 /docs/tools
parent059e6e9ac25d4f748f86ef0ef7a6c26a35551f11 (diff)
downloadclang-98c4d57826376988fa2dbd8eb294ee57e32f0dcd.tar.gz
[analyzer] dump_ast_matchers.py: fix replacement regexps
Patch by Alex Sidorin! Differential Revision: http://reviews.llvm.org/D17376 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tools')
-rw-r--r--docs/tools/dump_ast_matchers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tools/dump_ast_matchers.py b/docs/tools/dump_ast_matchers.py
index ccbb616d7b..c2fdcc2883 100644
--- a/docs/tools/dump_ast_matchers.py
+++ b/docs/tools/dump_ast_matchers.py
@@ -363,11 +363,11 @@ traversal_matcher_table = sort_table('TRAVERSAL', traversal_matchers)
reference = open('../LibASTMatchersReference.html').read()
reference = re.sub(r'<!-- START_DECL_MATCHERS.*END_DECL_MATCHERS -->',
- '%s', reference, flags=re.S) % node_matcher_table
+ node_matcher_table, reference, flags=re.S)
reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
- '%s', reference, flags=re.S) % narrowing_matcher_table
+ narrowing_matcher_table, reference, flags=re.S)
reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
- '%s', reference, flags=re.S) % traversal_matcher_table
+ traversal_matcher_table, reference, flags=re.S)
with open('../LibASTMatchersReference.html', 'wb') as output:
output.write(reference)