Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion clang/docs/tools/dump_ast_matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import collections
import re
import os
import sys
from urllib.request import urlopen


Expand Down Expand Up @@ -612,5 +613,7 @@ def sort_table(matcher_type, matcher_map):
flags=re.S,
)

with open(HTML_FILE, "w", newline="\n") as output:
output_file = sys.argv[1] if len(sys.argv) == 2 else HTML_FILE

with open(output_file, "w", newline="\n") as output:
output.write(reference)
4 changes: 4 additions & 0 deletions clang/test/AST/ast_matchers_updated.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// FIXME enable windows
// UNSUPPORTED: system-windows
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the test unsupported on Windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was error with ssl certificates of urlopen #165472 (comment), so I disabled the test for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought I'm trying to make this script totally offline, so we should not have this problem in the long run.

// RUN: %python %S/../../docs/tools/dump_ast_matchers.py %t
// RUN: diff %t %S/../../docs/LibASTMatchersReference.html