diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-11-20 07:46:19 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-11-20 07:46:19 +0000 |
commit | 611d33a5a2ae4c584ba8ce323587b11a413b2f56 (patch) | |
tree | 551837e753a52d334c00a1d40835d46af8834014 /clang/docs/tools/dump_ast_matchers.py | |
parent | e325e3806f2dd1f570f339b63dcf298728763d93 (diff) | |
download | bcm5719-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.py | 2 |
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) |