Fix ASTMatcher reference newlines and make the generator script windows-proof.

llvm-svn: 253653
This commit is contained in:
Benjamin Kramer 2015-11-20 07:46:19 +00:00
parent e325e3806f
commit 611d33a5a2
3 changed files with 4690 additions and 4690 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)

View File

@ -188,6 +188,6 @@ contents = open(DOC_FILE).read()
contents = substitute(contents, 'FORMAT_STYLE_OPTIONS', options_text)
with open(DOC_FILE, 'w') as output:
with open(DOC_FILE, 'wb') as output:
output.write(contents)