It may be possible to avoid relying on accessing many individual class pages,
by instead scanning the class index page at
https://clang.llvm.org/doxygen/classes.html. This updates the script to do so,
and includes updates to LibASTMatchersReference.html generated by the
modified script.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Aaron -- I'm not the right reviewer for this. I've put you as the reviewer, but feel free to re-route if there's someone better. Thanks!
clang/docs/tools/dump_ast_matchers.py | ||
---|---|---|
13 | Do we need to handle an exception here if there are network issues? |
clang/docs/tools/dump_ast_matchers.py | ||
---|---|---|
13 | Technically, if there is a network issue, any exceptions would cause the script to terminate. But I think you're right that we should handle this case more carefully. |
LGTM, though I'll note I'm by no means a Python expert. I'm adding a few more AST matching folks in case they spot something I've missed, so please give this at least 24 hours before landing.
Nice!
clang/docs/tools/dump_ast_matchers.py | ||
---|---|---|
48 | While here I'd add a comment: """ Wrap a likely AST node name in a link to its clang docs. We want to do this only if the page exists, in which case it will be referenced from the class index page. """ (You're only adding a bit of conceptual complexity here, but it looks like it's been built up over time...) |
Do we need to handle an exception here if there are network issues?