9 Commits

Author SHA1 Message Date
c8ef
f385542f62
[Tooling/Inclusion] Modify the Python script to open the C++ reference with UTF-8 encoding. (#121341)
This will prevent the error on systems with a default encoding other
than utf-8.

```
UnicodeDecodeError: 'gbk' codec can't decode byte 0xb6 in position 12958: illegal multibyte sequence
```
2024-12-31 09:28:34 +08:00
Vadim D.
c0ce44e8fc
[Tooling/Inclusion] Update std symbols mapping (#113612)
Fixes #113494
2024-11-04 14:55:38 +01:00
Cassie Jones
7213ae8423
[include-mapping] Python fixes
- Move the multiprocessing.Pool initializer to a top-level function, it
  was previously causing a pickle failure with my machine's python.
- Change the `env python` to `env python3` for convenience
2023-09-12 11:24:35 -07:00
Tobias Hieta
dd3c26a045
[NFC][Py Reformat] Reformat python files in clang and clang-tools-extra
This is an ongoing series of commits that are reformatting our
Python code.

Reformatting is done with `black`.

If you end up having problems merging this commit because you
have made changes to a python file, the best way to handle that
is to run git checkout --ours <yourfile> and then reformat it
with black.

If you run into any problems, post to discourse about it and
we will try to help.

RFC Thread below:

https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style

Reviewed By: MatzeB

Differential Revision: https://reviews.llvm.org/D150761
2023-05-23 08:29:52 +02:00
Haojian Wu
c812ab7312 [include-mapping] Add C-compatibility symbol entries.
Extending the python generator:
- to generate C-compatibility symbols
- to generate macros

Differential Revision: https://reviews.llvm.org/D143214
2023-02-09 15:34:41 +01:00
Viktoriia Bakalova
4da283872a [include-mapping] Regenerate the StdSymbolMap.inc from the 20220730 html book.
Merge the zoombie names into the StdSymbols as well.

Differential Revision: https://reviews.llvm.org/D143054
2023-02-07 14:52:18 +01:00
Viktoriia Bakalova
ed001018a0 [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
2023-01-12 15:59:32 +00:00
Viktoriia Bakalova
301123c7a8 [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
2023-01-12 09:48:27 +00:00
Kirill Bobyrev
46a6f5ae14 [clangd] NFC: Move stdlib headers handling to Clang
This will allow moving the IncludeCleaner library essentials to Clang
and decoupling them from the majority of clangd.

The patch itself just moves the code, it doesn't change existing
functionality.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D119130
2022-02-09 11:05:39 +01:00