summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/include-mapping/test.py
Commit message (Collapse)AuthorAgeFilesLines
* [clangd] Add include-mapping for C symbols.Haojian Wu2019-06-211-7/+7
| | | | | | | | | | | | | | | | | | | Summary: This resolves the issue of introducing c++-style includes for C files. - refactor the gen_std.py, make it reusable for parsing C symbols. - add a language mode to the mapping method to use different mapping for C and C++ files. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, jfb, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63270 llvm-svn: 364044
* [clangd] Another improvement for std include mapping.Haojian Wu2019-05-291-2/+36
| | | | | | | | | | | | | | | | Summary: Improve the way of checking a symbol name is in the first cell. The previous way is not very robost for cases where a cell lists multiple symbols (e.g. int8_t). Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62575 llvm-svn: 361951
* [clangd] Improvements to header mapping: more precise parsing of ↵Sam McCall2019-05-021-4/+23
| | | | | | | | | | | | | | | | | | | | | | cppreference symbol pages. Summary: Previously we were just jumping from the symbol index to the symbol page, and grabbing all the headers mentioned there. But the page often lists multiple symbols, and so we got false positives and thus ambiguities (which were dropped). Now we look at which declarations are for the symbol we want, and prefer headers listed above that symbol. If there are none, we fall back to the old behavior. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61316 llvm-svn: 359771
* [clangd] Standard library mapping: prefer "primary" versions of functions ↵Sam McCall2019-05-021-5/+6
| | | | | | | | | | | | | | over variants. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61349 llvm-svn: 359770
* [clangd] Using symbol name to map includes for STL symbols.Haojian Wu2019-03-141-0/+101
Summary: Using suffix path mapping relies on the STL implementations, and it is not portable. This patch is using symbol name mapping, which should work with different STL implementations, fix clangd/clangd#9. To generate the symbol mapping, we parse the cppreference symbol index page to build a lookup table. The mapping is not completed, a few TODOs: - support symbols from different headers (e.g. std::move) - support STL macros - support symbols from std's sub-namespaces (e.g. chrono) Reviewers: ioeric, jfb, serge-sans-paille Reviewed By: ioeric Subscribers: sammccall, klimek, ilya-biryukov, ioeric, MaskRay, jkorous, mgrang, arphaman, kadircet, jfb, jdoerfert, cfe-commits Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D58345 llvm-svn: 356134
OpenPOWER on IntegriCloud