15 Commits

Author SHA1 Message Date
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
Haojian Wu
171868dc2c [Tooling/Inclusion] Add std::range symbols in the mapping.
Fixes https://github.com/llvm/llvm-project/issues/64191

Differential Revision: https://reviews.llvm.org/D156648
2023-07-31 13:05:47 +02: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
586e497f79 [Tooling/Inclusion] Index more sub std namespace symbols.
Fixes https://github.com/llvm/llvm-project/issues/61373

Differential Revision: https://reviews.llvm.org/D146021
2023-03-14 13:08:44 +01:00
Haojian Wu
404b1b2ed4 [Tooling/Inclusion] Add missing placerholder _1 symbols.
Differential Revision: https://reviews.llvm.org/D145553
2023-03-09 09:20:42 +01: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
Haojian Wu
3599cbd3f6 [include-mapping] Better #includes support for std input/output symbols
Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D143280
2023-02-07 14:19:32 +01:00
Viktoriia Bakalova
e74f9e7885 [include-mapping] Parse zombie_names.html into a removed symbols map.
Differential Revision: https://reviews.llvm.org/D141855
2023-01-20 08:53:31 +00:00
Viktoriia Bakalova
0aaeb25525 [include-mapping] Fix gen_std.py test
Differential Revision: https://reviews.llvm.org/D141944
2023-01-18 13:07:41 +00: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
Viktoriia Bakalova
83c5040f6f [include-mapping] Fix the instructions for running stdlib recognizer. Mention python command explicitly. Remove angle brackets.
Differential Revision: https://reviews.llvm.org/D141477
2023-01-11 11:35:53 +00:00
Gabriel Ravier
5674a3c880 Fixed a number of typos
I went over the output of the following mess of a command:

(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z |
 parallel --xargs -0 cat | aspell list --mode=none --ignore-case |
 grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n |
 grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)

and proceeded to spend a few days looking at it to find probable typos
and fixed a few hundred of them in all of the llvm project (note, the
ones I found are not anywhere near all of them, but it seems like a
good start).

Differential Revision: https://reviews.llvm.org/D130827
2022-08-01 13:13:18 -04: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