summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools/dump_ast_matchers.py
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-11-20 07:46:19 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-11-20 07:46:19 +0000
commit611d33a5a2ae4c584ba8ce323587b11a413b2f56 (patch)
tree551837e753a52d334c00a1d40835d46af8834014 /clang/docs/tools/dump_ast_matchers.py
parente325e3806f2dd1f570f339b63dcf298728763d93 (diff)
downloadbcm5719-llvm-611d33a5a2ae4c584ba8ce323587b11a413b2f56.tar.gz
bcm5719-llvm-611d33a5a2ae4c584ba8ce323587b11a413b2f56.zip
Fix ASTMatcher reference newlines and make the generator script windows-proof.
llvm-svn: 253653
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 5812f86e6f4..9ecff049c96 100644
--- a/clang/docs/tools/dump_ast_matchers.py
+++ b/clang/docs/tools/dump_ast_matchers.py
@@ -364,6 +364,6 @@ reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
'%s', reference, flags=re.S) % traversal_matcher_table
-with open('../LibASTMatchersReference.html', 'w') as output:
+with open('../LibASTMatchersReference.html', 'wb') as output:
output.write(reference)
OpenPOWER on IntegriCloud