[PATCH] D17376: dump_ast_matchers.py: fix replacement regexps
Yury Gribov via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 18 07:48:27 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL261219: [analyzer] dump_ast_matchers.py: fix replacement regexps (authored by ygribov).
Changed prior to commit:
http://reviews.llvm.org/D17376?vs=48306&id=48316#toc
Repository:
rL LLVM
http://reviews.llvm.org/D17376
Files:
cfe/trunk/docs/tools/dump_ast_matchers.py
Index: cfe/trunk/docs/tools/dump_ast_matchers.py
===================================================================
--- cfe/trunk/docs/tools/dump_ast_matchers.py
+++ cfe/trunk/docs/tools/dump_ast_matchers.py
@@ -363,11 +363,11 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17376.48316.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160218/2ac840b9/attachment.bin>
More information about the cfe-commits
mailing list