This patch turns exceptions (that are being triggered in most cases) into defensive prints
Details
Diff Detail
Event Timeline
Yes, as far as I understand, the URL request is more of an "assert" thing; it confirms that there's a doxygen page for the class mentioned in the code, but I'd be very surprised if there are any actual classes that you can use in the C++ code for which there's no doxygen page.
This check was running into problems on, uh, certain corporate networks with unusual SSL certificate manipulations, and I think it makes sense to make it less mandatory. It's still checking all URLs by default whenever it can, so it'll start flagging broken URLs anyway if they ever appear, it just unblocks progress for folks who need or prefer it to be offline for some reason. Which is really helpful when it's like your first time running this script and you've no idea what to expect.
clang/docs/tools/dump_ast_matchers.py | ||
---|---|---|
61–64 | It's probably better to be explicit about what we expect to happen here. This is just a string operation, it probably can't go wrong in many ways. |
nit: I would suggest splitting the update to the docs from the modification to the script itself, since they are unrelated.
Splitting the update: Updates to LibASTMAtchersReference.html are now in https://reviews.llvm.org/D155304
It's probably better to be explicit about what we expect to happen here. This is just a string operation, it probably can't go wrong in many ways.