llvm-project/clang-tools-extra/clangd/include-mapping
Sam McCall 15b89df9da [clangd] Improvements to header mapping: more precise parsing of 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
2019-05-02 09:34:30 +00:00
..
gen_std.py [clangd] Improvements to header mapping: more precise parsing of cppreference symbol pages. 2019-05-02 09:34:30 +00:00
test.py [clangd] Improvements to header mapping: more precise parsing of cppreference symbol pages. 2019-05-02 09:34:30 +00:00