Author: Viktoriia Bakalova Date: 2023-01-12T15:59:32Z New Revision: ed001018a02b3d8da699317cad7f7727d126f01d
URL: https://github.com/llvm/llvm-project/commit/ed001018a02b3d8da699317cad7f7727d126f01d DIFF: https://github.com/llvm/llvm-project/commit/ed001018a02b3d8da699317cad7f7727d126f01d.diff LOG: [include-mapping] Print an error message in case the symbol index points to a non-existent page. Fix: https://github.com/llvm/llvm-project/issues/59610 Differential Revision: https://reviews.llvm.org/D141611 Added: Modified: clang/tools/include-mapping/cppreference_parser.py Removed: ################################################################################ diff --git a/clang/tools/include-mapping/cppreference_parser.py b/clang/tools/include-mapping/cppreference_parser.py index 137d310491bd1..759269bffaa96 100644 --- a/clang/tools/include-mapping/cppreference_parser.py +++ b/clang/tools/include-mapping/cppreference_parser.py @@ -145,6 +145,9 @@ def _GetSymbols(pool, root_dir, index_page_name, namespace, variants_to_accept): if os.path.isfile(path): results.append((symbol_name, pool.apply_async(_ReadSymbolPage, (path, symbol_name)))) + else: + sys.stderr.write("Discarding information for symbol: %s. Page %s does not exist.\n" + % (symbol_name, path)) # Build map from symbol name to a set of headers. symbol_headers = collections.defaultdict(set) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits