[clang] 301123c - [include-mapping] Fix parsing of html_book_20190607.zip (https://en.cppreference.com/w/File:html_book_20190607.zip). Skip entries that have been added to the index (C++20 symbols), but the corresponding pages for which have not been created yet.
Viktoriia Bakalova via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 01:48:54 PST 2023
Author: Viktoriia Bakalova
Date: 2023-01-12T09:48:27Z
New Revision: 301123c7a8b5f5dd415e336ff933576279b0e868
URL: https://github.com/llvm/llvm-project/commit/301123c7a8b5f5dd415e336ff933576279b0e868
DIFF: https://github.com/llvm/llvm-project/commit/301123c7a8b5f5dd415e336ff933576279b0e868.diff
LOG: [include-mapping] Fix parsing of html_book_20190607.zip (https://en.cppreference.com/w/File:html_book_20190607.zip). Skip entries that have been added to the index (C++20 symbols), but the corresponding pages for which have not been created yet.
Differential Revision: https://reviews.llvm.org/D141509
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 e56c8a5f1331a..137d310491bd1 100644
--- a/clang/tools/include-mapping/cppreference_parser.py
+++ b/clang/tools/include-mapping/cppreference_parser.py
@@ -142,7 +142,8 @@ def _GetSymbols(pool, root_dir, index_page_name, namespace, variants_to_accept):
if variant and variant not in variants_for_symbol:
continue
path = os.path.join(root_dir, symbol_page_path)
- results.append((symbol_name,
+ if os.path.isfile(path):
+ results.append((symbol_name,
pool.apply_async(_ReadSymbolPage, (path, symbol_name))))
# Build map from symbol name to a set of headers.
More information about the cfe-commits
mailing list