[PATCH] D141611: [include-mapping] Print an error message in case the symbol index points to a non-existent page.
Viktoriia Bakalova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 07:39:51 PST 2023
VitaNuo created this revision.
Herald added a subscriber: arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141611
Files:
clang/tools/include-mapping/cppreference_parser.py
Index: clang/tools/include-mapping/cppreference_parser.py
===================================================================
--- clang/tools/include-mapping/cppreference_parser.py
+++ clang/tools/include-mapping/cppreference_parser.py
@@ -145,6 +145,8 @@
if os.path.isfile(path):
results.append((symbol_name,
pool.apply_async(_ReadSymbolPage, (path, symbol_name))))
+ else:
+ print("Could not parse page:", path, ". Page does not exist.", file=sys.stderr)
# Build map from symbol name to a set of headers.
symbol_headers = collections.defaultdict(set)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141611.488647.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230112/6709cc86/attachment.bin>
More information about the cfe-commits
mailing list