hokein added inline comments.
================ Comment at: clang/tools/include-mapping/cppreference_parser.py:117 def _ReadSymbolPage(path, name): - with open(path) as f: - return _ParseSymbolPage(f.read(), name) + try: + f = open(path) ---------------- so the input path can be invalid, pointing to a non-existing file, I'd just check it in the caller side, see my other comment. ================ Comment at: clang/tools/include-mapping/cppreference_parser.py:153 continue path = os.path.join(root_dir, symbol_page_path) results.append((symbol_name, ---------------- I think just adding a file-existing check would work: ``` if os.path.isfile(path): results.append((symbol_name, pool.apply_async(_ReadSymbolPage, (path, symbol_name)))) ``` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D141509/new/ https://reviews.llvm.org/D141509 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits